From: liam m. <lia...@go...> - 2009-12-13 11:36:23
|
2009/12/12 liam mail <lia...@go...> > Using Xcode if I have a config like so: > configuration {"xcode3" } > libdirs {"usr/local/lib","usr/lib"} > links{ "gmock","gtest","cppunit", "lua" } > > configuration {"xcode3","Debug"} > postbuildcommands {root .. "bin/Debug/test.unit"} > > Then the postbuild does not create a shell script and therefore can not be > run after a build, yet if I have the following it works: > > configuration {"xcode3" } > libdirs {"usr/local/lib","usr/lib"} > links{ "gmock","gtest","cppunit", "lua" } > postbuildcommands {root .. "bin/Debug/test.unit"} > > Should I file a bug report, or is Xcode a special case? > > > What I would like to write is the following if anybody can point me to the > information required > postbuildcommands {"$(PROJECT_DIR)/$(CONFIGURATION)/test.unit"} > or > postbuildcommands{"$(BUILT_PRODUCTS_DIR)/$(TARGET_NAME)"} > > Thanks > Liam > For anybody interested the code that I was looking for was postbuildcommands {"$TARGET_BUILD_DIR/$TARGET_NAME"} Which does away with needing to write the first piece of code with two configs, yet I still feel this is a bug in premake. Liam |