Skip to content

Commit 4b686cc

Browse files
committed
run formatting on CMakeLists.txt
1 parent fb05b04 commit 4b686cc

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

NativeScript/CMakeLists.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cmake_minimum_required(VERSION 3.15)
22

33
# Metadata
4-
54
project(NativeScript CXX OBJCXX)
65

76
set(NAME NativeScript)
@@ -17,7 +16,6 @@ set(COMMON_FLAGS "-O3 -Wno-shorten-64-to-32")
1716
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_FLAGS}")
1817

1918
# Arguments
20-
2119
set(TARGET_PLATFORM "macos" CACHE STRING "Target platform for the Objective-C bridge")
2220
set(TARGET_ENGINE "v8" CACHE STRING "Target JS engine for the NativeScript runtime")
2321
set(METADATA_SIZE 0 CACHE STRING "Size of embedded metadata in bytes")
@@ -97,7 +95,6 @@ message(STATUS "ENABLE_JS_RUNTIME = ${ENABLE_JS_RUNTIME}")
9795
message(STATUS "GENERIC_NAPI = ${GENERIC_NAPI}")
9896

9997
# Set up sources
100-
10198
include_directories(
10299
./
103100
../metadata-generator/include
@@ -200,12 +197,14 @@ if(ENABLE_JS_RUNTIME)
200197
)
201198

202199
set(SOURCE_FILES ${SOURCE_FILES}
200+
203201
# quickjs
204202
napi/quickjs/source/cutils.c
205203
napi/quickjs/source/libregexp.c
206204
napi/quickjs/source/libbf.c
207205
napi/quickjs/source/libunicode.c
208206
napi/quickjs/source/quickjs.c
207+
209208
# napi
210209
napi/quickjs/quickjs-api.c
211210
napi/quickjs/jsr.cpp
@@ -222,7 +221,6 @@ if(ENABLE_JS_RUNTIME)
222221
napi/jsc/jsc-api.cpp
223222
napi/jsc/jsr.cpp
224223
)
225-
226224
endif()
227225
else()
228226
include_directories(
@@ -238,7 +236,6 @@ if(BUILD_CLI_BINARY)
238236
endif()
239237

240238
# Find SDK
241-
242239
find_program(XCODEBUILD_EXECUTABLE xcodebuild)
243240

244241
if(METADATA_SIZE EQUAL 0)
@@ -264,7 +261,6 @@ set(CMAKE_OSX_SYSROOT "${CMAKE_OSX_SYSROOT_INT}" CACHE INTERNAL "")
264261
message(STATUS "SDK = ${CMAKE_OSX_SYSROOT}")
265262

266263
# Build targets
267-
268264
if(BUILD_CLI_BINARY)
269265
add_executable(${NAME} ${SOURCE_FILES})
270266
else()
@@ -300,7 +296,7 @@ endif()
300296

301297
if(TARGET_PLATFORM_MACOS)
302298
# add_custom_command(TARGET ${NAME} POST_BUILD
303-
# COMMAND /usr/libexec/PlistBuddy -c "Add :LSMinimumSystemVersion string ${CMAKE_OSX_DEPLOYMENT_TARGET}" $<TARGET_FILE_DIR:${NAME}>/Resources/Info.plist
299+
# COMMAND /usr/libexec/PlistBuddy -c "Add :LSMinimumSystemVersion string ${CMAKE_OSX_DEPLOYMENT_TARGET}" $<TARGET_FILE_DIR:${NAME}>/Resources/Info.plist
304300
# )
305301

306302
# Convert the Info.plist from binary format to XML format.
@@ -372,7 +368,7 @@ if(TARGET_ENGINE_JSC)
372368
endif()
373369

374370
if(TARGET_ENGINE_V8)
375-
if (TARGET_PLATFORM_MACOS)
371+
if(TARGET_PLATFORM_MACOS)
376372
target_link_directories(
377373
${NAME}
378374
PRIVATE

0 commit comments

Comments
 (0)