diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-10 16:47:16 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-06-10 16:47:16 +0000 |
commit | face963aab2642ea2611d646c053627bafb0d330 (patch) | |
tree | 38cbb026d0675311b8a28cfe7cd6cab4ee179eab /scripts | |
parent | 158236b1da3be07360aa4af66575e72cabf2ecf9 (diff) |
scripts: Added projects for Code::Blocks, Codelite and XCode
git-svn-id: http://pugixml.googlecode.com/svn/trunk@507 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/premake4.lua | 16 | ||||
-rw-r--r-- | scripts/pugixml.xcodeproj/project.pbxproj | 217 | ||||
-rw-r--r-- | scripts/pugixml_codeblocks.cbp | 46 | ||||
-rw-r--r-- | scripts/pugixml_codelite.project | 57 |
4 files changed, 334 insertions, 2 deletions
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 = "<group>"; }; + 5798321A608F001276187980 /* pugixml.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "pugixml.cpp"; path = "pugixml.cpp"; sourceTree = "<group>"; }; + 503D140A3505001276187980 /* pugixml.hpp */ = {isa = PBXFileReference; lastKnownFileType = text; name = "pugixml.hpp"; path = "pugixml.hpp"; sourceTree = "<group>"; }; + 759C4F2F1EA5001276187980 /* pugixpath.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = "pugixpath.cpp"; path = "pugixpath.cpp"; sourceTree = "<group>"; }; + 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 = "<group>"; + }; + 39D538816523001276187980 /* src */ = { + isa = PBXGroup; + children = ( + 48FD751D6AE1001276187980 /* pugiconfig.hpp */, + 5798321A608F001276187980 /* pugixml.cpp */, + 503D140A3505001276187980 /* pugixml.hpp */, + 759C4F2F1EA5001276187980 /* pugixpath.cpp */, + ); + name = src; + path = ../src; + sourceTree = "<group>"; + }; + 2370531E2CEF001276187980 /* Products */ = { + isa = PBXGroup; + children = ( + 657F5E385C32001276187980 /* libpugixml_d.a */, + ); + name = Products; + sourceTree = "<group>"; + }; +/* 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 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="6" /> + <Project> + <Option title="pugixml" /> + <Option pch_mode="2" /> + <Option compiler="gcc" /> + <Build> + <Target title="Debug"> + <Option output="codeblocks/libpugixml_d.a" prefix_auto="0" extension_auto="0" /> + <Option object_output="codeblocks/Debug" /> + <Option type="2" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-g" /> + <Add option="-D_DEBUG" /> + </Compiler> + <Linker> + </Linker> + </Target> + <Target title="Release"> + <Option output="codeblocks/libpugixml.a" prefix_auto="0" extension_auto="0" /> + <Option object_output="codeblocks/Release" /> + <Option type="2" /> + <Option compiler="gcc" /> + <Compiler> + <Add option="-O2" /> + <Add option="-DNDEBUG" /> + </Compiler> + <Linker> + <Add option="-s" /> + </Linker> + </Target> + </Build> + <Unit filename="../src/pugixml.hpp"> + </Unit> + <Unit filename="../src/pugiconfig.hpp"> + </Unit> + <Unit filename="../src/pugixml.cpp"> + </Unit> + <Unit filename="../src/pugixpath.cpp"> + </Unit> + <Extensions /> + </Project> +</CodeBlocks_project_file> + 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<CodeLite_Project Name="pugixml"> + <VirtualDirectory Name="src"> + <File Name="../src/pugixml.hpp"/> + <File Name="../src/pugiconfig.hpp"/> + <File Name="../src/pugixml.cpp"/> + <File Name="../src/pugixpath.cpp"/> + </VirtualDirectory> + <Settings Type="Static Library"> + <Configuration Name="Debug" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="Static Library"> + <General OutputFile="codelite/libpugixml_d.a" IntermediateDirectory="codelite/Debug" Command="./libpugixml_d.a" CommandArguments="" WorkingDirectory="codelite" PauseExecWhenProcTerminates="yes"/> + <Compiler Required="yes" Options="-g"> + <Preprocessor Value="_DEBUG"/> + </Compiler> + <Linker Required="yes" Options=""> + </Linker> + <ResourceCompiler Required="no" Options=""/> + <CustomBuild Enabled="no"> + <CleanCommand></CleanCommand> + <BuildCommand></BuildCommand> + <SingleFileCommand></SingleFileCommand> + <MakefileGenerationCommand></MakefileGenerationCommand> + <ThirdPartyToolName>None</ThirdPartyToolName> + <WorkingDirectory></WorkingDirectory> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild></CustomPostBuild> + <CustomPreBuild></CustomPreBuild> + </AdditionalRules> + </Configuration> + <Configuration Name="Release" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="Static Library"> + <General OutputFile="codelite/libpugixml.a" IntermediateDirectory="codelite/Release" Command="./libpugixml.a" CommandArguments="" WorkingDirectory="codelite" PauseExecWhenProcTerminates="yes"/> + <Compiler Required="yes" Options="-O2"> + <Preprocessor Value="NDEBUG"/> + </Compiler> + <Linker Required="yes" Options="-s"> + </Linker> + <ResourceCompiler Required="no" Options=""/> + <CustomBuild Enabled="no"> + <CleanCommand></CleanCommand> + <BuildCommand></BuildCommand> + <SingleFileCommand></SingleFileCommand> + <MakefileGenerationCommand></MakefileGenerationCommand> + <ThirdPartyToolName>None</ThirdPartyToolName> + <WorkingDirectory></WorkingDirectory> + </CustomBuild> + <AdditionalRules> + <CustomPostBuild></CustomPostBuild> + <CustomPreBuild></CustomPreBuild> + </AdditionalRules> + </Configuration> + </Settings> + <Dependencies name="Debug"> + </Dependencies> + <Dependencies name="Release"> + </Dependencies> +</CodeLite_Project> |