Skip to content

Commit

Permalink
Merge pull request #3 from InstinctBas/studio_11_build
Browse files Browse the repository at this point in the history
Adjust build files for Omnis Studio 11
  • Loading branch information
BastiaanOlij authored Jul 1, 2024
2 parents afe63f4 + 3721fd2 commit 201efe3
Show file tree
Hide file tree
Showing 15 changed files with 399 additions and 315 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/build_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
# faster testing by disabling the others...
- os: macos-latest
platform: macos
- os: windows-latest
platform: windows
#- os: windows-latest
# platform: windows

steps:
- name: Setup actions
Expand All @@ -38,17 +38,19 @@ jobs:

- name: Get SDK (MacOS)
run: |
curl -O "ftp://ftp.omnis.net/OmnisStudio/Studio102_31315/SDK/osx64/OSX-SDK-10.2-31315.dmg"
hdiutil attach OSX-SDK-10.2-31315.dmg
cp -a /volumes/OSX-SDK-10.2-31315/OSX-SDK-10.2-31315/. thirdparty/omnis.sdk/mac/
hdiutil detach /volumes/OSX-SDK-10.2-31315
omnis_sdk=$(curl -s "https://filestore.omnis.net/omnisrestservlet/ws/5975/api/file_browser/browser/file?file=/OmnisStudio/Studio1100_36251/SDK/macOS-SDK-11-36251.dmg&browsertype=0&odppid=blank" | awk {'print $1'})
curl -O "$omnis_sdk"
hdiutil attach macOS-SDK-11-36251.dmg
cp -a /volumes/macOS-SDK-11-36251/macOS_SDK_11_36251/. thirdparty/omnis.sdk/mac/
hdiutil detach /volumes/macOS-SDK-11-36251
if: matrix.platform == 'macos'

- name: Get SDK (Windows)
run: |
curl -O "ftp://ftp.omnis.net/OmnisStudio/Studio102_31315/SDK/windows/Windows-SDK-10.2-31315-x86-x64.zip"
tar -xf Windows-SDK-10.2-31315-x86-x64.zip
xcopy /E /I Windows-SDK-10.2-31315-x86-x64\* thirdparty\omnis.sdk\win\
omnis_sdk=$(curl -s "https://filestore.omnis.net/omnisrestservlet/ws/5975/api/file_browser/browser/file?file=/OmnisStudio/Studio1100_36251/SDK/Windows-SDK-11-x64.zip&browsertype=0&odppid=blank" | awk {'print $1'})
curl -O "$omnis_sdk"
tar -xf Windows-SDK-11-x64.zip
xcopy /E /I Windows-SDK-11-x64\* thirdparty\omnis.sdk\win\
if: matrix.platform == 'windows'

- name: Build (MacOS)
Expand All @@ -58,15 +60,15 @@ jobs:

- name: Build (Windows)
run: |
MSBuild example.vcxproj /property:Platform=x64 /property:Configuration="UNICODE Release"
MSBuild example.vcxproj /property:Platform=x64 /property:Configuration="Release"
if: matrix.platform == 'windows'

- name: Upload build files (artifacts) (MacOS)
uses: actions/upload-artifact@v2
with:
name: xcomp-macos
path: |
_OSXUnicode
build/release
if: matrix.platform == 'macos'

- name: Upload build files (artifacts) (Windows)
Expand Down
3 changes: 0 additions & 3 deletions English.lproj/Bitmap.strings

This file was deleted.

11 changes: 0 additions & 11 deletions English.lproj/Localizable.strings

This file was deleted.

Binary file removed English.lproj/OEXAMPLE.PNG
Binary file not shown.
2 changes: 2 additions & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
File renamed without changes.
4 changes: 2 additions & 2 deletions example.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@
<None Include="example.DEF" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="English.lproj\oExample.rc" />
<ResourceCompile Include="en.lproj\oExample.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="English.lproj\oExample.bmp" />
<Image Include="en.lproj\oExample.bmp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="thirdparty\omnis.xcomp.framework\oBaseComponent.h" />
Expand Down
4 changes: 2 additions & 2 deletions example.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
<ClCompile Include="Src\oNVExample.cpp" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="English.lproj\oExample.rc" />
<ResourceCompile Include="en.lproj\oExample.rc" />
</ItemGroup>
<ItemGroup>
<Image Include="English.lproj\oExample.bmp" />
<Image Include="en.lproj\oExample.bmp" />
</ItemGroup>
<ItemGroup>
<None Include="example.DEF" />
Expand Down
9 changes: 9 additions & 0 deletions mac/prefix_d.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#define TESTVER 0
#define _DEBUG

#define mach_o_unicode
#define isunicode
#define UNICODE
#define _UNICODE

#include "carbnuni.h"
8 changes: 8 additions & 0 deletions mac/prefix_r.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#define TESTVER 0

#define mach_o_unicode
#define isunicode
#define UNICODE
#define _UNICODE

#include "carbnuni.h"
586 changes: 301 additions & 285 deletions oExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions omnis.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//
// omnis.xcconfig
// build_all
//
// Copyright © 2023 Omnis Software Ltd. All rights reserved.
//

// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974

XCOMP_BUNDLE_IDENTIFIER = omnis.xcomp.example
XCOMP_PRODUCT_NAME = oExample

OMNIS_SDK_ROOT = macosx
OMNIS_DEPLOYMENT_TARGET = 10.14
OMNIS_BUILD_ROOT = $(SRCROOT)/build
CPP_LANG_DIALECT = c++17
CPP_STD_LIBRARY = libc++

MACOSX_DEPLOYMENT_TARGET = $OMNIS_DEPLOYMENT_TARGET
OMNIS_ACTIVE_ARCH_ONLY[config=Deployment] = NO
OMNIS_ACTIVE_ARCH_ONLY[config=Development] = YES
ONLY_ACTIVE_ARCH = $OMNIS_ACTIVE_ARCH_ONLY
ARCHS = $(ARCHS_STANDARD)
DEPLOYMENT_LOCATION = YES
SKIP_INSTALL = NO
INSTALL_ROOT = /
INSTALL_PATH = /
ALWAYS_SEARCH_USER_PATHS = NO
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO
CODE_SIGN_STYLE = Manual

OMNIS_CODE_SIGNING_IDENTITY[config=Deployment] = -
OMNIS_CODE_SIGNING_IDENTITY[config=Development] = -

OMNIS_CONFIG[config=Deployment] = Release
OMNIS_CONFIG[config=Development] = Debug

OMNIS_FILES_ROOT = $OMNIS_BUILD_ROOT/$OMNIS_CONFIG

COMPLIB_DIR[config=Deployment] = $(SRCROOT)/thirdparty/omnis.sdk/mac/complib
COMPLIB_DIR[config=Development] = $(SRCROOT)/thirdparty/omnis.sdk/mac/complib_debug

OMNISRC_DIR = $(SRCROOT)/thirdparty/omnis.sdk/mac/tools

DWARF_DSYM_FOLDER_PATH_PREFIX = $(OMNIS_BUILD_ROOT)/DebugSymbols

// jscomp
OMNIS_JSCOMP_DIR = jscomp
OMNIS_JSCOMP_INSTALL_DIR = $OMNIS_FILES_ROOT/$OMNIS_JSCOMP_DIR
OMNIS_JSCOMP_PREFIX_PATH = $COMPLIB_DIR/complib.framework/Versions/A/Headers/carbnuni.h

// xcomp
OMNIS_XCOMP_DIR = xcomp
OMNIS_XCOMP_INSTALL_DIR = $OMNIS_FILES_ROOT/$OMNIS_XCOMP_DIR
OMNIS_XCOMP_HEADER_PATHS = $COMPLIB_DIR/complib.framework/Headers
OMNIS_XCOMP_REZ_PATHS = $COMPLIB_DIR/complib.framework/Versions/A/Resources
OMNIS_XCOMP_PREFIX_PATH = $COMPLIB_DIR/complib.framework/Versions/A/Headers/carbnuni.h
OMNIS_XCOMP_FRAMEWORK_PATH = $COMPLIB_DIR/

OMNIS_C_FLAGS = "-DOMNISSDK=110"
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion thirdparty/omnis.xcomp.framework

0 comments on commit 201efe3

Please sign in to comment.