From b01dcb775c98cc48abe65a91ef9bf093be875682 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 2 Mar 2026 23:52:25 +0800 Subject: improve template dirs --- xmake/templates/objc++/xcode/bundle/src/Info.plist | 24 ++++++++++++++++++++++ xmake/templates/objc++/xcode/bundle/src/test.h | 3 +++ xmake/templates/objc++/xcode/bundle/src/test.mm | 5 +++++ 3 files changed, 32 insertions(+) create mode 100644 xmake/templates/objc++/xcode/bundle/src/Info.plist create mode 100644 xmake/templates/objc++/xcode/bundle/src/test.h create mode 100644 xmake/templates/objc++/xcode/bundle/src/test.mm (limited to 'xmake/templates/objc++/xcode/bundle/src') diff --git a/xmake/templates/objc++/xcode/bundle/src/Info.plist b/xmake/templates/objc++/xcode/bundle/src/Info.plist new file mode 100644 index 000000000..20608314e --- /dev/null +++ b/xmake/templates/objc++/xcode/bundle/src/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSHumanReadableCopyright + Copyright © 2020 tboox. All rights reserved. + + diff --git a/xmake/templates/objc++/xcode/bundle/src/test.h b/xmake/templates/objc++/xcode/bundle/src/test.h new file mode 100644 index 000000000..d882546d1 --- /dev/null +++ b/xmake/templates/objc++/xcode/bundle/src/test.h @@ -0,0 +1,3 @@ +#import + +FOUNDATION_EXPORT int add(int a, int b); diff --git a/xmake/templates/objc++/xcode/bundle/src/test.mm b/xmake/templates/objc++/xcode/bundle/src/test.mm new file mode 100644 index 000000000..20e29bd0a --- /dev/null +++ b/xmake/templates/objc++/xcode/bundle/src/test.mm @@ -0,0 +1,5 @@ +#include "test.h" + +int add(int a, int b) { + return a + b; +} -- cgit v1.3.1