@geastack/apple 0.2.20 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -166,7 +166,8 @@ const rendererSources = [
|
|
|
166
166
|
'renderer/view_reconciler.mm',
|
|
167
167
|
].map((file) => source(path.join(iosDir, 'main', file), 'sourcecode.cpp.objcpp'))
|
|
168
168
|
// gea.targets.<ios|tvos>: per-target native sources, static archives, system
|
|
169
|
-
// frameworks
|
|
169
|
+
// frameworks, SDK libraries by name (nativeSystemLibraries, linked as -l<name>)
|
|
170
|
+
// and include directories (validated by the CLI's nativeLink), and
|
|
170
171
|
// resource directories staged into the app bundle (nativeResources).
|
|
171
172
|
const uikitTarget = tvos ? 'tvos' : 'ios'
|
|
172
173
|
const appNativeLink = appMeta.nativeLink?.[uikitTarget] || {}
|
|
@@ -378,7 +379,7 @@ function buildSettings(configuration) {
|
|
|
378
379
|
${tvos ? 'TVOS_DEPLOYMENT_TARGET = 17.0;' : 'IPHONEOS_DEPLOYMENT_TARGET = 16.0;'}
|
|
379
380
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
380
381
|
ONLY_ACTIVE_ARCH = ${configuration === 'Debug' ? 'YES' : 'NO'};
|
|
381
|
-
OTHER_LDFLAGS = (${['$(inherited)', '-Wl,-no_deduplicate', ...(appNativeLink.nativeLibraries || [])].map(q).join(', ')});
|
|
382
|
+
OTHER_LDFLAGS = (${['$(inherited)', '-Wl,-no_deduplicate', ...(appNativeLink.nativeLibraries || []), ...(appNativeLink.nativeSystemLibraries || []).map((name) => `-l${name}`)].map(q).join(', ')});
|
|
382
383
|
PRODUCT_BUNDLE_IDENTIFIER = ${q(bundleId)};
|
|
383
384
|
PRODUCT_NAME = ${q(appName)};
|
|
384
385
|
SDKROOT = ${tvos ? 'appletvos' : 'iphoneos'};
|
|
@@ -1978,6 +1978,8 @@ APP_LINK_RECORD="$(node -e 'const a=JSON.parse(process.argv[1]);const c=a.native
|
|
|
1978
1978
|
APP_NATIVE_LIBRARIES=()
|
|
1979
1979
|
while IFS= read -r library; do [[ -z "$library" ]] || APP_NATIVE_LIBRARIES+=("$library"); done < <(node -e 'for(const p of JSON.parse(process.argv[1]).nativeLibraries)console.log(p)' "$APP_LINK_RECORD")
|
|
1980
1980
|
while IFS= read -r framework; do [[ -z "$framework" ]] || LINK_FRAMEWORKS+=(-framework "$framework"); done < <(node -e 'for(const p of JSON.parse(process.argv[1]).frameworks)console.log(p)' "$APP_LINK_RECORD")
|
|
1981
|
+
# SDK libraries by name (nativeSystemLibraries: "z" links the SDK's libz).
|
|
1982
|
+
while IFS= read -r library; do [[ -z "$library" ]] || LINK_FRAMEWORKS+=("-l$library"); done < <(node -e 'for(const p of JSON.parse(process.argv[1]).nativeSystemLibraries||[])console.log(p)' "$APP_LINK_RECORD")
|
|
1981
1983
|
|
|
1982
1984
|
node "$GEA_CLI" apps sync-native-resources "$APP_ID" --target macos --output "$RES_DIR" > "$BUILD_DIR/native-resources.json"
|
|
1983
1985
|
if [[ "$(node -e 'process.stdout.write(String(JSON.parse(require("fs").readFileSync(process.argv[1],"utf8")).changed))' "$BUILD_DIR/native-resources.json")" == "true" ]]; then BUNDLE_CONTENT_CHANGED=1; fi
|