From face963aab2642ea2611d646c053627bafb0d330 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 10 Jun 2010 16:47:16 +0000 Subject: scripts: Added projects for Code::Blocks, Codelite and XCode git-svn-id: http://pugixml.googlecode.com/svn/trunk@507 99668b35-9821-0410-8761-19e4c4f06640 --- scripts/premake4.lua | 16 ++- scripts/pugixml.xcodeproj/project.pbxproj | 217 ++++++++++++++++++++++++++++++ scripts/pugixml_codeblocks.cbp | 46 +++++++ scripts/pugixml_codelite.project | 57 ++++++++ 4 files changed, 334 insertions(+), 2 deletions(-) create mode 100644 scripts/pugixml.xcodeproj/project.pbxproj create mode 100644 scripts/pugixml_codeblocks.cbp create mode 100644 scripts/pugixml_codelite.project diff --git a/scripts/premake4.lua b/scripts/premake4.lua index 873497c..3a11567 100644 --- a/scripts/premake4.lua +++ b/scripts/premake4.lua @@ -1,11 +1,11 @@ +local action = premake.action.current() + if string.startswith(_ACTION, "vs") then -- We need debugging symbols for all configurations, but runtime library depends on official Symbols flag, so hack it function premake.vs200x_vcproj_symbols(cfg) return 3 end - local action = premake.action.current() - if action then -- Disable solution generation function action.onsolution(sln) @@ -17,6 +17,18 @@ if string.startswith(_ACTION, "vs") then premake.generate(prj, "%%_" .. _ACTION .. ".vcproj", premake.vs200x_vcproj) end end +elseif _ACTION == "codeblocks" then + action.onsolution = nil + + function action.onproject(prj) + premake.generate(prj, "%%_" .. _ACTION .. ".cbp", premake.codeblocks_cbp) + end +elseif _ACTION == "codelite" then + action.onsolution = nil + + function action.onproject(prj) + premake.generate(prj, "%%_" .. _ACTION .. ".project", premake.codelite_project) + end end solution "pugixml" diff --git a/scripts/pugixml.xcodeproj/project.pbxproj b/scripts/pugixml.xcodeproj/project.pbxproj new file mode 100644 index 0000000..16c7286 --- /dev/null +++ b/scripts/pugixml.xcodeproj/project.pbxproj @@ -0,0 +1,217 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 7B7157781F0E001276187980 /* pugixml.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 5798321A608F001276187980 /* pugixml.cpp */; }; + 512576A93004001276187980 /* pugixpath.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 759C4F2F1EA5001276187980 /* pugixpath.cpp */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 48FD751D6AE1001276187980 /* pugiconfig.hpp */ = {isa = PBXFileReference; lastKnownFileType = text; name = "pugiconfig.hpp"; path = "pugiconfig.hpp"; sourceTree = ""; }; + 5798321A608F001276187980 /* pugixml.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "pugixml.cpp"; path = "pugixml.cpp"; sourceTree = ""; }; + 503D140A3505001276187980 /* pugixml.hpp */ = {isa = PBXFileReference; lastKnownFileType = text; name = "pugixml.hpp"; path = "pugixml.hpp"; sourceTree = ""; }; + 759C4F2F1EA5001276187980 /* pugixpath.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "pugixpath.cpp"; path = "pugixpath.cpp"; sourceTree = ""; }; + 657F5E385C32001276187980 /* libpugixml_d.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libpugixml_d.a"; path = "libpugixml_d.a"; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 6C6F20C769C4001276187980 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0EC333EF6EA3001276187980 /* pugixml */ = { + isa = PBXGroup; + children = ( + 39D538816523001276187980 /* src */, + 2370531E2CEF001276187980 /* Products */, + ); + name = pugixml; + sourceTree = ""; + }; + 39D538816523001276187980 /* src */ = { + isa = PBXGroup; + children = ( + 48FD751D6AE1001276187980 /* pugiconfig.hpp */, + 5798321A608F001276187980 /* pugixml.cpp */, + 503D140A3505001276187980 /* pugixml.hpp */, + 759C4F2F1EA5001276187980 /* pugixpath.cpp */, + ); + name = src; + path = ../src; + sourceTree = ""; + }; + 2370531E2CEF001276187980 /* Products */ = { + isa = PBXGroup; + children = ( + 657F5E385C32001276187980 /* libpugixml_d.a */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 444856A82D91001276187980 /* pugixml */ = { + isa = PBXNativeTarget; + buildConfigurationList = 10DC4D226B9E001276187980 /* Build configuration list for PBXNativeTarget "pugixml" */; + buildPhases = ( + 33F65676078B001276187980 /* Resources */, + 48FE6B406296001276187980 /* Sources */, + 6C6F20C769C4001276187980 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = pugixml; + productName = pugixml; + productReference = 657F5E385C32001276187980 /* libpugixml_d.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 08FB7793FE84155DC02AAC07 /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "pugixml" */; + compatibilityVersion = "Xcode 3.1"; + hasScannedForEncodings = 1; + mainGroup = 0EC333EF6EA3001276187980 /* pugixml */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 444856A82D91001276187980 /* libpugixml_d.a */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 33F65676078B001276187980 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 48FE6B406296001276187980 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7B7157781F0E001276187980 /* pugixml.cpp in Sources */, + 512576A93004001276187980 /* pugixpath.cpp in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 74ED18006B05001276187980 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CONFIGURATION_BUILD_DIR = xcode3; + GCC_DYNAMIC_NO_PIC = NO; + GCC_MODEL_TUNING = G5; + INSTALL_PATH = /usr/local/lib; + PRODUCT_NAME = "pugixml_d"; + }; + name = "Debug"; + }; + 0452792C7ED4001276187980 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + CONFIGURATION_BUILD_DIR = xcode3; + GCC_DYNAMIC_NO_PIC = NO; + GCC_MODEL_TUNING = G5; + INSTALL_PATH = /usr/local/lib; + PRODUCT_NAME = "pugixml"; + }; + name = "Release"; + }; + 062C5D426ED4001276187980 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(NATIVE_ARCH_ACTUAL)"; + CONFIGURATION_BUILD_DIR = "$(SYMROOT)"; + CONFIGURATION_TEMP_DIR = "$(OBJROOT)"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "_DEBUG", + ); + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + OBJROOT = "xcode3/Debug"; + ONLY_ACTIVE_ARCH = NO; + PREBINDING = NO; + SYMROOT = "xcode3"; + }; + name = "Debug"; + }; + 74A924703036001276187980 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(NATIVE_ARCH_ACTUAL)"; + CONFIGURATION_BUILD_DIR = "$(SYMROOT)"; + CONFIGURATION_TEMP_DIR = "$(OBJROOT)"; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_OPTIMIZATION_LEVEL = s; + GCC_PREPROCESSOR_DEFINITIONS = ( + "NDEBUG", + ); + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + OBJROOT = "xcode3/Release"; + ONLY_ACTIVE_ARCH = NO; + PREBINDING = NO; + SYMROOT = "xcode3"; + }; + name = "Release"; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 10DC4D226B9E001276187980 /* Build configuration list for PBXNativeTarget "libpugixml_d.a" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 74ED18006B05001276187980 /* Debug */, + 0452792C7ED4001276187980 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Debug"; + }; + 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "pugixml" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 062C5D426ED4001276187980 /* Debug */, + 74A924703036001276187980 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Debug"; + }; +/* End XCConfigurationList section */ + + }; + rootObject = 08FB7793FE84155DC02AAC07 /* Project object */; +} diff --git a/scripts/pugixml_codeblocks.cbp b/scripts/pugixml_codeblocks.cbp new file mode 100644 index 0000000..dd53469 --- /dev/null +++ b/scripts/pugixml_codeblocks.cbp @@ -0,0 +1,46 @@ + + + + + + + diff --git a/scripts/pugixml_codelite.project b/scripts/pugixml_codelite.project new file mode 100644 index 0000000..a6367ef --- /dev/null +++ b/scripts/pugixml_codelite.project @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + None + + + + + + + + + + + + + + + + + + + + + None + + + + + + + + + + + + + -- cgit v1.2.3