mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 14:05:32 +02:00
More edits to Xcode build
This commit is contained in:
parent
c4ce877186
commit
929df36f3a
5 changed files with 35 additions and 39 deletions
|
@ -6,7 +6,7 @@ MINIMUM_REQUIRED := 11.0
|
|||
SDL_FLAGS := ${SDL_FLAGS}
|
||||
SDL2_IMAGE_FLAGS := ${SDL2_IMAGE_FLAGS}
|
||||
SDL2_TTF_FLAGS := ${SDL2_TTF_FLAGS}
|
||||
OPENAL_FLAGS := ${OPENAL_FLAGS}
|
||||
OPENAL_FLAGS := -DALSOFT_CPUEXT_NEON=no ${OPENAL_FLAGS}
|
||||
RUBY_FLAGS := ${RUBY_FLAGS}
|
||||
|
||||
include dependencies.make
|
||||
|
|
|
@ -27,15 +27,15 @@ CONFIGURE_ARGS := \
|
|||
CMAKE_ARGS := \
|
||||
-DCMAKE_INSTALL_PREFIX="$(BUILD_PREFIX)" \
|
||||
-DCMAKE_OSX_SYSROOT=$(SDKROOT) \
|
||||
-DCMAKE_OSX_ARCHITECTURES=$(ARCH) \
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=$(MINIMUM_REQUIRED) \
|
||||
-DCMAKE_C_FLAGS="$(CFLAGS)"
|
||||
|
||||
RUBY_CONFIGURE_ARGS := \
|
||||
--enable-install-static-library \
|
||||
--enable-shared \
|
||||
--disable-install-doc \
|
||||
--with-out-ext=openssl \
|
||||
--with-out-ext=fiddle \
|
||||
--with-out-ext=gdbm \
|
||||
--with-out-ext=openssl,fiddle,gdbm,win32ole,win32 \
|
||||
--disable-rubygems \
|
||||
--with-static-linked-ext \
|
||||
${EXTRA_RUBY_CONFIG_ARGS}
|
||||
|
@ -172,7 +172,8 @@ $(DOWNLOADS)/sdl2/configure: $(DOWNLOADS)/sdl2/autogen.sh
|
|||
cd $(DOWNLOADS)/sdl2; ./autogen.sh
|
||||
|
||||
$(DOWNLOADS)/sdl2/autogen.sh:
|
||||
$(CLONE) $(GITHUB)/SDL-mirror/SDL $(DOWNLOADS)/sdl2
|
||||
$(CLONE) $(GITHUB)/SDL-mirror/SDL $(DOWNLOADS)/sdl2; \
|
||||
cd $(DOWNLOADS)/sdl2; git checkout 49052b8a81be445eb178be5270db6b3ed140d9f5
|
||||
|
||||
# SDL2 (Image)
|
||||
sdl2image: init_dirs sdl2 libpng libjpeg $(LIBDIR)/libSDL2_image.a
|
||||
|
@ -231,15 +232,15 @@ $(DOWNLOADS)/freetype/autogen.sh:
|
|||
$(CLONE) $(GITLAB)/mkxp-z/freetype2 $(DOWNLOADS)/freetype
|
||||
|
||||
# OpenAL
|
||||
openal: init_dirs libogg $(LIBDIR)/libopenal-soft.a
|
||||
openal: init_dirs libogg $(LIBDIR)/libopenal.a
|
||||
|
||||
$(LIBDIR)/libopenal-soft.a: $(DOWNLOADS)/openal/cmakebuild/Makefile
|
||||
$(LIBDIR)/libopenal.a: $(DOWNLOADS)/openal/cmakebuild/Makefile
|
||||
cd $(DOWNLOADS)/openal/cmakebuild; \
|
||||
make -j$(NPROC); make install
|
||||
|
||||
$(DOWNLOADS)/openal/cmakebuild/Makefile: $(DOWNLOADS)/openal/CMakeLists.txt
|
||||
cd $(DOWNLOADS)/openal; mkdir cmakebuild; cd cmakebuild; \
|
||||
$(CMAKE) -DLIBTYPE=STATIC $(OPENAL_FLAGS)
|
||||
$(CMAKE) -DLIBTYPE=STATIC -DALSOFT_EXAMPLES=no -DALSOFT_UTILS=no $(OPENAL_FLAGS)
|
||||
|
||||
$(DOWNLOADS)/openal/CMakeLists.txt:
|
||||
$(CLONE) $(GITLAB)/mkxp-z/openal-soft $(DOWNLOADS)/openal
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
CONFIG := Config.xcconfig
|
||||
XCARGS := -xcconfig $(CONFIG) -scheme Player
|
||||
|
||||
debug: deps
|
||||
xcodebuild -configuration Debug $(XCARGS)
|
||||
|
||||
release: deps
|
||||
xcodebuild -configuration Release $(XCARGS)
|
||||
|
||||
deps:
|
||||
@make -f Deps.make
|
||||
|
||||
clean:
|
||||
@make -f Deps.make clean
|
||||
rm -rf "DerivedData"
|
|
@ -118,6 +118,7 @@
|
|||
3B10EE092568E96A00372D13 /* binding-mri.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3B10EDF02568E96A00372D13 /* binding-mri.cpp */; };
|
||||
3B10EE0B2568E96A00372D13 /* module_rpg.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3B10EDF32568E96A00372D13 /* module_rpg.cpp */; };
|
||||
3B10EE0C2568E96A00372D13 /* viewport-binding.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3B10EDF42568E96A00372D13 /* viewport-binding.cpp */; };
|
||||
3B426F77256BA847009EA00F /* libsigc-2.0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B426F76256BA847009EA00F /* libsigc-2.0.a */; };
|
||||
3B5A84062569B56F00BAF2E5 /* config.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3B5A84052569B56F00BAF2E5 /* config.cpp */; };
|
||||
3B5A840D2569BE7C00BAF2E5 /* filesystemImplApple.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3B5A840C2569BE7C00BAF2E5 /* filesystemImplApple.mm */; };
|
||||
3B5A84342569F82C00BAF2E5 /* mkxp.json in CopyFiles */ = {isa = PBXBuildFile; fileRef = 3BD2B7282565B35D003DAD8A /* mkxp.json */; };
|
||||
|
@ -417,6 +418,7 @@
|
|||
3B426F6E256B8AC0009EA00F /* filesystem.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = filesystem.hpp; sourceTree = "<group>"; };
|
||||
3B426F6F256B8AC0009EA00F /* fs_impl.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = fs_impl.hpp; sourceTree = "<group>"; };
|
||||
3B426F70256B8AC0009EA00F /* fs_std_fwd.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = fs_std_fwd.hpp; sourceTree = "<group>"; };
|
||||
3B426F76256BA847009EA00F /* libsigc-2.0.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libsigc-2.0.a"; path = "Dependencies/build-macosx-x86_64/lib/libsigc-2.0.a"; sourceTree = "<group>"; };
|
||||
3B5A84052569B56F00BAF2E5 /* config.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = config.cpp; sourceTree = "<group>"; };
|
||||
3B5A840C2569BE7C00BAF2E5 /* filesystemImplApple.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = filesystemImplApple.mm; sourceTree = "<group>"; };
|
||||
3B5A84132569C28B00BAF2E5 /* filesystemImpl.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = filesystemImpl.cpp; sourceTree = "<group>"; };
|
||||
|
@ -494,6 +496,7 @@
|
|||
3BE08118256879FE0006849F /* libSDL2_test.a in Frameworks */,
|
||||
3BA08FA525674C9900449CFF /* OpenGL.framework in Frameworks */,
|
||||
3BD2B6E72565AEC0003DAD8A /* IOKit.framework in Frameworks */,
|
||||
3B426F77256BA847009EA00F /* libsigc-2.0.a in Frameworks */,
|
||||
3B10EC5D2568D40C00372D13 /* Carbon.framework in Frameworks */,
|
||||
3B10EC5E2568D40C00372D13 /* AppKit.framework in Frameworks */,
|
||||
3B10EC5F2568D40C00372D13 /* Metal.framework in Frameworks */,
|
||||
|
@ -943,6 +946,7 @@
|
|||
3BE080FF256879FE0006849F /* libphysfs.a */,
|
||||
3BE080E9256879FC0006849F /* libpixman-1.a */,
|
||||
3BE080F4256879FD0006849F /* libruby.2.6-static.a */,
|
||||
3B426F76256BA847009EA00F /* libsigc-2.0.a */,
|
||||
3BE080F0256879FD0006849F /* libSDL2_image.a */,
|
||||
3BE080FA256879FE0006849F /* libSDL2_test.a */,
|
||||
3BE080EF256879FD0006849F /* libSDL2_ttf.a */,
|
||||
|
@ -978,9 +982,9 @@
|
|||
productReference = 3BA08EA4256641ED00449CFF /* Assets.bundle */;
|
||||
productType = "com.apple.product-type.bundle";
|
||||
};
|
||||
3BD2B64B2565AEC0003DAD8A /* Player */ = {
|
||||
3BD2B64B2565AEC0003DAD8A /* Mac App (Intel) */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 3BD2B7222565AEC0003DAD8A /* Build configuration list for PBXNativeTarget "Player" */;
|
||||
buildConfigurationList = 3BD2B7222565AEC0003DAD8A /* Build configuration list for PBXNativeTarget "Mac App (Intel)" */;
|
||||
buildPhases = (
|
||||
3BD2B64C2565AEC0003DAD8A /* Sources */,
|
||||
3BD2B6E12565AEC0003DAD8A /* Frameworks */,
|
||||
|
@ -992,7 +996,7 @@
|
|||
dependencies = (
|
||||
3BA08ED3256643AD00449CFF /* PBXTargetDependency */,
|
||||
);
|
||||
name = Player;
|
||||
name = "Mac App (Intel)";
|
||||
productName = PlayerLegacy;
|
||||
productReference = 3BD2B7252565AEC0003DAD8A /* mkxp-z.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
|
@ -1024,7 +1028,7 @@
|
|||
projectRoot = "";
|
||||
targets = (
|
||||
3BA08EA3256641ED00449CFF /* Assets */,
|
||||
3BD2B64B2565AEC0003DAD8A /* Player */,
|
||||
3BD2B64B2565AEC0003DAD8A /* Mac App (Intel) */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
@ -1327,6 +1331,7 @@
|
|||
CURRENT_PROJECT_VERSION = 2.0;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
DEVELOPMENT_ASSET_PATHS = "";
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
|
||||
|
@ -1349,7 +1354,10 @@
|
|||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Dependencies/build-macosx-x86_64/lib",
|
||||
);
|
||||
MARKETING_VERSION = 2.0;
|
||||
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
||||
MTL_FAST_MATH = YES;
|
||||
|
@ -1360,7 +1368,6 @@
|
|||
);
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "$(inherited)";
|
||||
PRODUCT_NAME = "mkxp-z";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
|
@ -1406,6 +1413,7 @@
|
|||
CURRENT_PROJECT_VERSION = 2.0;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
DEVELOPMENT_ASSET_PATHS = "";
|
||||
ENABLE_HARDENED_RUNTIME = YES;
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
|
||||
|
@ -1426,7 +1434,10 @@
|
|||
"$(inherited)",
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Dependencies/build-macosx-x86_64/lib",
|
||||
);
|
||||
MARKETING_VERSION = 2.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
MTL_FAST_MATH = YES;
|
||||
|
@ -1436,7 +1447,6 @@
|
|||
);
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "$(inherited)";
|
||||
PRODUCT_NAME = "mkxp-z";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
|
@ -1447,7 +1457,7 @@
|
|||
baseConfigurationReference = 3BDB240A2564715C00C4A63D /* Config.xcconfig */;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
MKXPZ_BUILD_XCODE,
|
||||
"ALCDEVICE_STRUCT=ALCdevice",
|
||||
|
@ -1470,9 +1480,9 @@
|
|||
"$(inherited)",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
OTHER_CODE_SIGN_FLAGS = "--ignore-resources";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.zoro.mkxpz;
|
||||
PRODUCT_NAME = "mkxp-z";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
|
@ -1481,7 +1491,7 @@
|
|||
baseConfigurationReference = 3BDB240A2564715C00C4A63D /* Config.xcconfig */;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD)";
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
MKXPZ_BUILD_XCODE,
|
||||
"ALCDEVICE_STRUCT=ALCdevice",
|
||||
|
@ -1504,9 +1514,9 @@
|
|||
"$(inherited)",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.13;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
OTHER_CODE_SIGN_FLAGS = "--ignore-resources";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.zoro.mkxpz;
|
||||
PRODUCT_NAME = "mkxp-z";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
@ -1522,7 +1532,7 @@
|
|||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
3BD2B7222565AEC0003DAD8A /* Build configuration list for PBXNativeTarget "Player" */ = {
|
||||
3BD2B7222565AEC0003DAD8A /* Build configuration list for PBXNativeTarget "Mac App (Intel)" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
3BD2B7232565AEC0003DAD8A /* Debug */,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "3BD2B64B2565AEC0003DAD8A"
|
||||
BuildableName = "mkxp-z.app"
|
||||
BlueprintName = "Player"
|
||||
BlueprintName = "Mac App (Intel)"
|
||||
ReferencedContainer = "container:mkxp-z.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
|
@ -46,7 +46,7 @@
|
|||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "3BD2B64B2565AEC0003DAD8A"
|
||||
BuildableName = "mkxp-z.app"
|
||||
BlueprintName = "Player"
|
||||
BlueprintName = "Mac App (Intel)"
|
||||
ReferencedContainer = "container:mkxp-z.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
|
@ -63,7 +63,7 @@
|
|||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "3BD2B64B2565AEC0003DAD8A"
|
||||
BuildableName = "mkxp-z.app"
|
||||
BlueprintName = "Player"
|
||||
BlueprintName = "Mac App (Intel)"
|
||||
ReferencedContainer = "container:mkxp-z.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
Loading…
Add table
Reference in a new issue