Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
André Pedro
CMake
Commits
f177c8a0
Commit
f177c8a0
authored
8 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
expat: Re-write CMake build system for our needs
Hard-code production of a static library. Rename to `cmexpat`.
parent
4544c68a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Utilities/cmexpat/CMakeLists.txt
+12
-33
12 additions, 33 deletions
Utilities/cmexpat/CMakeLists.txt
Utilities/cmexpat/lib/expat_external.h
+2
-0
2 additions, 0 deletions
Utilities/cmexpat/lib/expat_external.h
with
14 additions
and
33 deletions
Utilities/cmexpat/CMakeLists.txt
+
12
−
33
View file @
f177c8a0
# This file is copyrighted under the BSD-license for buildsystem files of KDE
# copyright 2010, Patrick Spendrin <ps_ml@gmx.de>
project
(
expat
)
cmake_minimum_required
(
VERSION 2.6
)
include
(
ConfigureChecks.cmake
)
include_directories
(
${
CMAKE_BINARY_DIR
}
${
CMAKE_SOURCE_DIR
}
/lib
)
if
(
MSVC
)
add_definitions
(
-D_CRT_SECURE_NO_WARNINGS -wd4996
)
endif
(
MSVC
)
if
(
WIN32
)
add_definitions
(
-DCOMPILING_FOR_WINDOWS
)
add_definitions
(
-DCOMPILING_FOR_WINDOWS
)
endif
(
WIN32
)
set
(
expat_SRCS
lib/xmlparse.c
lib/xmlrole.c
lib/xmltok.c
lib/xmltok_impl.c
lib/xmltok_ns.c
)
if
(
BUILD_shared
)
set
(
_SHARED SHARED
)
if
(
WIN32
)
set
(
expat_SRCS
${
expat_SRCS
}
lib/libexpat.def
)
endif
(
WIN32
)
else
(
BUILD_shared
)
set
(
_SHARED STATIC
)
if
(
WIN32
)
add_definitions
(
-DXML_STATIC
)
endif
(
WIN32
)
endif
(
BUILD_shared
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
add_library
(
expat
${
_SHARED
}
${
expat_SRCS
}
)
add_library
(
cmexpat STATIC
lib/xmlparse.c
lib/xmlrole.c
lib/xmltok.c
lib/xmltok_impl.c
lib/xmltok_ns.c
)
This diff is collapsed.
Click to expand it.
Utilities/cmexpat/lib/expat_external.h
+
2
−
0
View file @
f177c8a0
...
...
@@ -53,6 +53,8 @@
#endif
#endif
/* not defined XMLCALL */
/* Build within CMake hard-codes use of a static library. */
#define XML_STATIC
#if !defined(XML_STATIC) && !defined(XMLIMPORT)
#ifndef XML_BUILDING_EXPAT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment