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>2009-07-13 22:34:26 +0400
committerstarkos <none@none>2009-07-13 22:34:26 +0400
commit7f7a7aec0d67da79b4cdffca7063c1f10a3dcafa (patch)
treef9eafa87e416cf2677b0fcd4ba2e91d8b5e9f9e6 /tests/test_gmake_cpp.lua
parent70451cc855264fb803d179d4b5f7854160d93006 (diff)
Use libtool instead of ar for universal static libraries
Diffstat (limited to 'tests/test_gmake_cpp.lua')
-rw-r--r--tests/test_gmake_cpp.lua33
1 files changed, 32 insertions, 1 deletions
diff --git a/tests/test_gmake_cpp.lua b/tests/test_gmake_cpp.lua
index a312b01..f9d4077 100644
--- a/tests/test_gmake_cpp.lua
+++ b/tests/test_gmake_cpp.lua
@@ -132,7 +132,6 @@ endif
end
-
function T.gmake_cpp.PlatformSpecificBlock()
platforms { "x64" }
prepare()
@@ -162,3 +161,35 @@ ifeq ($(config),debug64)
endif
]]
end
+
+
+ function T.gmake_cpp.UniversalStaticLibBlock()
+ kind "StaticLib"
+ platforms { "universal32" }
+ prepare()
+ local cfg = premake.getconfig(prj, "Debug", "Universal32")
+ premake.gmake_cpp_config(cfg, premake.gcc)
+ test.capture [[
+ifeq ($(config),debuguniv32)
+ OBJDIR = obj/Universal32/Debug
+ TARGETDIR = .
+ TARGET = $(TARGETDIR)/libMyProject.a
+ DEFINES +=
+ INCLUDES +=
+ CPPFLAGS += $(DEFINES) $(INCLUDES)
+ CFLAGS += $(CPPFLAGS) $(ARCH) -arch i386 -arch ppc
+ CXXFLAGS += $(CFLAGS)
+ LDFLAGS += -s -arch i386 -arch ppc
+ LIBS +=
+ RESFLAGS += $(DEFINES) $(INCLUDES)
+ LDDEPS +=
+ LINKCMD = libtool -o $(TARGET) $(OBJECTS)
+ define PREBUILDCMDS
+ endef
+ define PRELINKCMDS
+ endef
+ define POSTBUILDCMDS
+ endef
+endif
+ ]]
+ end