1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Use native CMakeLists.txt for libexpat

cmake-proxies/expat/CMakeLists.txt seems to make more problems than it
solves. But the native one appears doing its job well on multiple
platforms. Tested on Windows, OSX, Linux and FreeBSD.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Author:    Vitaliy Kirsanov <krokoziabla@yandex-team.ru>
# Date:      Thu Mar 14 19:03:29 2019 +0300
#
# On branch tmp
# Your branch is up to date with 'my/tmp'.
#
# Changes to be committed:
#	modified:   cmake-proxies/CMakeLists.txt
#	deleted:    cmake-proxies/expat/CMakeLists.txt
#	modified:   lib-src/expat/CMakeLists.txt
#
# Changes not staged for commit:
#	modified:   lib-src/expat/CMakeLists.txt
#
This commit is contained in:
Vitaliy Kirsanov
2019-03-14 19:03:29 +03:00
committed by James Crook
parent f7162d3326
commit 5ada9ee201
3 changed files with 7 additions and 55 deletions

View File

@@ -1,51 +0,0 @@
#directory cmake-proxies/expat
set( TARGET expat )
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
project( ${TARGET} )
set( SOURCES
#${LIB_SRC_DIRECTORY}expat/amiga/expat_68k.c
#${LIB_SRC_DIRECTORY}expat/amiga/expat_68k_handler_stubs.c
#${LIB_SRC_DIRECTORY}expat/amiga/expat_lib.c
#${LIB_SRC_DIRECTORY}expat/amiga/expat_vectors.c
#${LIB_SRC_DIRECTORY}expat/amiga/launch.c
#${LIB_SRC_DIRECTORY}expat/examples/elements.c
#${LIB_SRC_DIRECTORY}expat/examples/outline.c
${LIB_SRC_DIRECTORY}expat/lib/xmlparse.c
${LIB_SRC_DIRECTORY}expat/lib/xmlrole.c
${LIB_SRC_DIRECTORY}expat/lib/xmltok.c
${LIB_SRC_DIRECTORY}expat/lib/xmltok_impl.c
${LIB_SRC_DIRECTORY}expat/lib/xmltok_ns.c
#${LIB_SRC_DIRECTORY}expat/tests/chardata.c
#${LIB_SRC_DIRECTORY}expat/tests/minicheck.c
#${LIB_SRC_DIRECTORY}expat/tests/runtests.c
#${LIB_SRC_DIRECTORY}expat/tests/benchmark/benchmark.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/codepage.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/ct.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/readfilemap.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/unixfilemap.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/win32filemap.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/xmlfile.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/xmlmime.c
#${LIB_SRC_DIRECTORY}expat/xmlwf/xmlwf.c
#${LIB_SRC_DIRECTORY}expat/tests/runtestspp.cpp
)
# This defines the #define on both Windows and Linux.
add_definitions(-D_LIB)
if(APPLE)
add_definitions(-DMACOS_CLASSIC)
else()
add_definitions(-DCOMPILED_FROM_DSP)
endif()
add_library( ${TARGET} STATIC ${SOURCES})
target_include_directories( ${TARGET} PRIVATE
${TARGET_SOURCE}/lib
)
target_link_libraries( ${TARGET} )