Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2008-12-06 00:18:47 +0300
committerstarkos <none@none>2008-12-06 00:18:47 +0300
commit1c97171f69cd704db6e2aa0f93dec772d0e18792 (patch)
tree510d0446948106a73896c48f4a893039c23c4186 /samples
parentbd14e9a2f368cc2ef858669a8431456480ab2990 (diff)
Big refactoring, bug fixes bug and small, performance improvements (branches/csharp r607:628)
Diffstat (limited to 'samples')
-rw-r--r--samples/project/CppConsoleApp/CppConsoleApp.cpp7
-rw-r--r--samples/project/CppConsoleApp/premake4.lua9
-rw-r--r--samples/project/CppSharedLib/CppSharedLib.cpp6
-rw-r--r--samples/project/CppSharedLib/CppSharedLib.def2
-rw-r--r--samples/project/CppSharedLib/premake4.lua12
-rw-r--r--samples/project/CppStaticLib/CppStaticLib.cpp6
-rw-r--r--samples/project/CppStaticLib/premake4.lua11
-rw-r--r--samples/project/CppWindowedApp/CppWindowedApp.cpp7
-rw-r--r--samples/project/CppWindowedApp/premake4.lua13
-rw-r--r--samples/project/premake42
-rw-r--r--samples/project/premake4.lua27
11 files changed, 102 insertions, 0 deletions
diff --git a/samples/project/CppConsoleApp/CppConsoleApp.cpp b/samples/project/CppConsoleApp/CppConsoleApp.cpp
new file mode 100644
index 0000000..c237aba
--- /dev/null
+++ b/samples/project/CppConsoleApp/CppConsoleApp.cpp
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main()
+{
+ printf("CppConsoleApp\n");
+ return 0;
+}
diff --git a/samples/project/CppConsoleApp/premake4.lua b/samples/project/CppConsoleApp/premake4.lua
new file mode 100644
index 0000000..ced2554
--- /dev/null
+++ b/samples/project/CppConsoleApp/premake4.lua
@@ -0,0 +1,9 @@
+project "CppConsoleApp"
+
+ kind "ConsoleApp"
+ language "C++"
+
+ files "*.cpp"
+
+ libdirs { "../lib" }
+ links { "CppSharedLib" }
diff --git a/samples/project/CppSharedLib/CppSharedLib.cpp b/samples/project/CppSharedLib/CppSharedLib.cpp
new file mode 100644
index 0000000..42ecddc
--- /dev/null
+++ b/samples/project/CppSharedLib/CppSharedLib.cpp
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+void CppSharedLib()
+{
+ printf("CppSharedLib\n");
+}
diff --git a/samples/project/CppSharedLib/CppSharedLib.def b/samples/project/CppSharedLib/CppSharedLib.def
new file mode 100644
index 0000000..16d9889
--- /dev/null
+++ b/samples/project/CppSharedLib/CppSharedLib.def
@@ -0,0 +1,2 @@
+EXPORTS
+ CppSharedLib \ No newline at end of file
diff --git a/samples/project/CppSharedLib/premake4.lua b/samples/project/CppSharedLib/premake4.lua
new file mode 100644
index 0000000..afbd38a
--- /dev/null
+++ b/samples/project/CppSharedLib/premake4.lua
@@ -0,0 +1,12 @@
+project "CppSharedLib"
+
+ kind "SharedLib"
+ language "C++"
+ files { "*.cpp", "CppSharedLib.def" }
+
+ configuration "Debug"
+ targetdir "lib/debug"
+
+ configuration "Release"
+ targetdir "lib/release"
+ flags { "NoImportLib" } \ No newline at end of file
diff --git a/samples/project/CppStaticLib/CppStaticLib.cpp b/samples/project/CppStaticLib/CppStaticLib.cpp
new file mode 100644
index 0000000..995220a
--- /dev/null
+++ b/samples/project/CppStaticLib/CppStaticLib.cpp
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+void CppStaticLib()
+{
+ printf("CppStaticLib\n");
+}
diff --git a/samples/project/CppStaticLib/premake4.lua b/samples/project/CppStaticLib/premake4.lua
new file mode 100644
index 0000000..91edebd
--- /dev/null
+++ b/samples/project/CppStaticLib/premake4.lua
@@ -0,0 +1,11 @@
+project "CppStaticLib"
+
+ kind "StaticLib"
+ language "C++"
+ files { "*.cpp" }
+
+ configuration "Debug"
+ targetdir "lib/debug"
+
+ configuration "Release"
+ targetdir "lib/release"
diff --git a/samples/project/CppWindowedApp/CppWindowedApp.cpp b/samples/project/CppWindowedApp/CppWindowedApp.cpp
new file mode 100644
index 0000000..ab788a2
--- /dev/null
+++ b/samples/project/CppWindowedApp/CppWindowedApp.cpp
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int main()
+{
+ printf("CppWindowedApp\n");
+ return 0;
+}
diff --git a/samples/project/CppWindowedApp/premake4.lua b/samples/project/CppWindowedApp/premake4.lua
new file mode 100644
index 0000000..e5f8c5e
--- /dev/null
+++ b/samples/project/CppWindowedApp/premake4.lua
@@ -0,0 +1,13 @@
+project "CppWindowedApp"
+
+ kind "WindowedApp"
+ language "C++"
+
+ files "*.cpp"
+
+ libdirs { "../lib" }
+ links { "CppStaticLib" }
+
+ configuration "windows"
+ links { "user32", "gdi32" }
+
diff --git a/samples/project/premake4 b/samples/project/premake4
new file mode 100644
index 0000000..2c6c4a3
--- /dev/null
+++ b/samples/project/premake4
@@ -0,0 +1,2 @@
+#!/bin/sh
+../../bin/debug/premake4 /scripts=../../src $1 $2 $3 $4 $5 $6
diff --git a/samples/project/premake4.lua b/samples/project/premake4.lua
new file mode 100644
index 0000000..b5a1788
--- /dev/null
+++ b/samples/project/premake4.lua
@@ -0,0 +1,27 @@
+solution "PremakeTestbox"
+ configurations { "Debug", "Release" }
+
+ location "build"
+
+ configuration "Debug"
+ targetdir "bin/debug"
+ flags { "Symbols" }
+ defines { "_DEBUG", "DEBUG" }
+
+ configuration "Release"
+ targetdir "bin/release"
+ flags { "Optimize" }
+ defines { "NDEBUG" }
+
+
+include "CppConsoleApp"
+include "CppWindowedApp"
+include "CppSharedLib"
+include "CppStaticLib"
+
+function onclean()
+ os.rmdir("bin")
+ os.rmdir("CppSharedLib/lib")
+ os.rmdir("CppStaticLib/lib")
+end
+