mirror of
https://github.com/darlinghq/darling.git
synced 2026-05-24 13:38:37 -05:00
Clean up build output
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
function(mig defFileName)
|
||||
set(MIG_EXECUTABLE "${CMAKE_BINARY_DIR}/mig")
|
||||
set(MIG_EXECUTABLE "${CMAKE_BINARY_DIR}/build-mig")
|
||||
|
||||
if (NOT MIG_USER_SOURCE_SUFFIX)
|
||||
set (MIG_USER_SOURCE_SUFFIX "User.c")
|
||||
|
||||
@@ -43,16 +43,16 @@ add_custom_command(
|
||||
#TARGET migcom
|
||||
#POST_BUILD
|
||||
#DEPENDS migcom
|
||||
OUTPUT "${CMAKE_BINARY_DIR}/mig"
|
||||
OUTPUT "${CMAKE_BINARY_DIR}/build-mig"
|
||||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/migcom.tproj/mig.sh"
|
||||
COMMAND
|
||||
awk -v "migcc=${CMAKE_C_COMPILER}"
|
||||
-v "migcom=${CMAKE_CURRENT_BINARY_DIR}/migcom"
|
||||
-f "${CMAKE_CURRENT_SOURCE_DIR}/migcom.tproj/mig.awk"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/migcom.tproj/mig.sh" ">${CMAKE_BINARY_DIR}/mig"
|
||||
&& chmod 0755 "${CMAKE_BINARY_DIR}/mig"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/migcom.tproj/mig.sh" ">${CMAKE_BINARY_DIR}/build-mig"
|
||||
&& chmod 0755 "${CMAKE_BINARY_DIR}/build-mig"
|
||||
)
|
||||
add_custom_target(migexe DEPENDS "${CMAKE_BINARY_DIR}/mig")
|
||||
add_custom_target(migexe DEPENDS "${CMAKE_BINARY_DIR}/build-mig")
|
||||
|
||||
add_dependencies(migexe migcom)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ project(copyfile)
|
||||
|
||||
cmake_minimum_required(VERSION 2.4.0)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -fblocks")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/platform-include)
|
||||
@@ -18,8 +18,8 @@ add_definitions(-D__APPLE__ -D__DYNAMIC__)
|
||||
|
||||
# Hide warnings
|
||||
add_definitions(
|
||||
-Wno-parentheses
|
||||
-Wno-int-conversion
|
||||
-w
|
||||
-nostdinc
|
||||
)
|
||||
|
||||
set(copyfile_sources
|
||||
|
||||
@@ -8,8 +8,9 @@ endif(COMMAND cmake_policy)
|
||||
|
||||
include (darling_exe)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdinc -std=c++11 -include ${CMAKE_SOURCE_DIR}/src/duct/include/CrashReporterClient.h")
|
||||
add_definitions(-nostdinc)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -include ${CMAKE_SOURCE_DIR}/src/duct/include/CrashReporterClient.h")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_SAVED "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib -Wl,-bind_at_load -Wl,-flat_namespace -Wl,-undefined,suppress")
|
||||
|
||||
|
||||
Vendored
+1
-1
Submodule src/external/SecurityTokend updated: 759305956b...9e8c88f2ba
Vendored
+1
-1
Submodule src/external/cocotron updated: 0d0fbfd060...d5496c73f3
Vendored
+1
-1
Submodule src/external/iokitd updated: 7024effe77...f382cc2c20
Vendored
+1
-1
Submodule src/external/vim updated: 476b532b31...b691e82466
@@ -7,8 +7,9 @@ include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../src
|
||||
)
|
||||
|
||||
add_definitions(-w -nostdinc)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -nostdinc -include ${CMAKE_SOURCE_DIR}/kernel-include/sys/fileport.h -ggdb")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -include ${CMAKE_SOURCE_DIR}/kernel-include/sys/fileport.h -ggdb")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib -Wl,-flat_namespace -Wl,-undefined,suppress")
|
||||
|
||||
mig(job.defs)
|
||||
|
||||
@@ -7,15 +7,8 @@ if(COMMAND cmake_policy)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
add_definitions(
|
||||
-Wno-macro-redefined
|
||||
-Wno-shift-negative-value
|
||||
-Wno-int-conversion
|
||||
-Wno-format
|
||||
-Wno-tautological-compare
|
||||
-Wno-deprecated-declarations
|
||||
-Wextra-tokens
|
||||
-Wpointer-bool-conversion
|
||||
-Wno-implicit-function-declaration
|
||||
-w
|
||||
-nostdinc
|
||||
)
|
||||
|
||||
include_directories(
|
||||
@@ -24,7 +17,7 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/external/libxpc
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -nostdinc -include ${CMAKE_SOURCE_DIR}/kernel-include/sys/fileport.h")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -include ${CMAKE_SOURCE_DIR}/kernel-include/sys/fileport.h")
|
||||
|
||||
mig(job.defs)
|
||||
mig(helper.defs)
|
||||
|
||||
@@ -7,16 +7,14 @@ if(COMMAND cmake_policy)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
add_definitions(
|
||||
-Wno-extra-tokens
|
||||
-Wno-pointer-bool-conversion
|
||||
-Wno-implicit-function-declaration
|
||||
-w -nostdinc
|
||||
)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../liblaunch/)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fblocks -nostdinc -include ${CMAKE_SOURCE_DIR}/kernel-include/sys/fileport.h")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fblocks -include ${CMAKE_SOURCE_DIR}/kernel-include/sys/fileport.h")
|
||||
|
||||
add_definitions(-DPRIVATE)
|
||||
|
||||
|
||||
@@ -17,12 +17,10 @@ add_definitions(-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1080)
|
||||
|
||||
add_definitions(-DDS_AVAILABLE)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -D__DARWIN_UNIX03 -fPIC -ggdb")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
|
||||
add_definitions(-w -nostdinc)
|
||||
|
||||
add_compile_options(
|
||||
-Wno-macro-redefined
|
||||
)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -ggdb")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/libc/darwin)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/kernel/libsyscall/wrappers)
|
||||
|
||||
@@ -12,7 +12,9 @@ include_directories(${CMAKE_SOURCE_DIR}/src/libc/darwin)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/external/libclosure)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/kernel/libsyscall/wrappers)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -nostdinc -include ${DARLING_TOP_DIRECTORY}/kernel-include/sys/fileport.h")
|
||||
add_definitions(-nostdinc -w)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -include ${DARLING_TOP_DIRECTORY}/kernel-include/sys/fileport.h")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
|
||||
|
||||
mig(notify_ipc.defs)
|
||||
|
||||
@@ -11,9 +11,11 @@ include_directories(${CMAKE_SOURCE_DIR}/src/libc/locale/FreeBSD)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/libc/locale)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/kernel/libsyscall/wrappers)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -nostdinc")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
|
||||
|
||||
add_definitions(-w -nostdinc)
|
||||
|
||||
set(removefile_sources
|
||||
removefile.c
|
||||
removefile_random.c
|
||||
|
||||
@@ -7,7 +7,7 @@ if(COMMAND cmake_policy)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -ggdb")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib -Wl,-bind_at_load")
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/libc/fbsdcompat)
|
||||
@@ -23,9 +23,8 @@ add_definitions(-D__APPLE__ -D__DYNAMIC__)
|
||||
|
||||
# Hide warnings
|
||||
add_definitions(
|
||||
-Wno-implicit-function-declaration
|
||||
-Wno-incompatible-pointer-types-discards-qualifiers
|
||||
-Wno-incompatible-pointer-types
|
||||
-w
|
||||
-nostdinc
|
||||
)
|
||||
|
||||
set(libsystem_sources
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
project(pboard)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc")
|
||||
|
||||
include(darling_exe)
|
||||
add_definitions(-nostdinc)
|
||||
|
||||
add_darling_executable(pbcopy pbcopy.m)
|
||||
target_link_libraries(pbcopy AppKit Foundation objc)
|
||||
|
||||
@@ -2,7 +2,6 @@ project(DiskImages)
|
||||
|
||||
add_compile_options(
|
||||
-nostdinc
|
||||
-mmacosx-version-min=10.10
|
||||
)
|
||||
|
||||
set(DYLIB_COMPAT_VERSION "1.0.8")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
project(unxip)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc")
|
||||
add_definitions(-nostdinc)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/xar
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
project(vchroot)
|
||||
include(darling_exe)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc")
|
||||
add_definitions(-nostdinc)
|
||||
|
||||
add_darling_executable(vchroot vchroot.c)
|
||||
target_link_libraries(vchroot system)
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
project(xtrace)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdinc -fno-exceptions -fno-rtti -std=c++11")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti -std=c++11")
|
||||
|
||||
add_definitions(-nostdinc)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
|
||||
Reference in New Issue
Block a user