diff --git a/.github/workflows/build_on_push.yml b/.github/workflows/build_on_push.yml index bccec70..8e7799c 100644 --- a/.github/workflows/build_on_push.yml +++ b/.github/workflows/build_on_push.yml @@ -19,14 +19,14 @@ jobs: matrix: include: # faster testing by disabling the others... - - os: macos-latest - platform: macos - #- os: windows-latest - # platform: windows + #- os: macos-latest + # platform: macos + - os: windows-latest + platform: windows steps: - name: Setup actions - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: 'recursive' @@ -47,8 +47,9 @@ jobs: - name: Get SDK (Windows) run: | - 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" + $response = Invoke-WebRequest -uri "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" + $omnisdk = [System.Text.Encoding]::UTF8.GetString($response.content) + Invoke-WebRequest -uri $omnisdk -OutFile Windows-SDK-11-x64.zip tar -xf Windows-SDK-11-x64.zip xcopy /E /I Windows-SDK-11-x64\* thirdparty\omnis.sdk\win\ if: matrix.platform == 'windows' @@ -89,7 +90,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Download all workflow run artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 - name: Copy files to destination run: | mkdir oExample diff --git a/example.vcxproj b/example.vcxproj index 927126f..54c5683 100644 --- a/example.vcxproj +++ b/example.vcxproj @@ -1,283 +1,161 @@  - + - - UNICODE Debug + + Release Win32 - - UNICODE Debug - x64 - - - UNICODE Release + + Debug Win32 - - UNICODE Release + + Release + x64 + + + Debug x64 {D377AD87-8C8E-47F3-987D-428CF82E73FF} - 10.0 + oExample - + + DynamicLibrary - v142 - false + false + Unicode - + DynamicLibrary - v142 - false + false + Unicode - + DynamicLibrary - v142 - false + false + Unicode - + DynamicLibrary - v142 - false + false + Unicode - + + + - + + + - + + + - + + + <_ProjectFileVersion>11.0.60315.1 - - .\URel\ - .\URel\ + false - - false - .\URel64\ - .\URel64\ - - - .\UDeb\ - .\UDeb\ + true - + + false + + true - .\UDeb64\ - .\UDeb64\ - - - NDEBUG;%(PreprocessorDefinitions) - true - true - Win32 - .\Release/GENERIC.tlb - - + + NDEBUG;isXCOMPLIB;NO_STRICT;WIN32;_WINDOWS;iswin32;isunicode;UNICODE;_UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;OMNISSDK=110;%(PreprocessorDefinitions) + MultiThreadedDLL MinSpace OnlyExplicitInline - thirdparty\omnis.sdk\win\complib;%(AdditionalIncludeDirectories) - NDEBUG;WIN32;_WINDOWS;iswin32;isXCOMPLIB;NO_STRICT;isunicode;UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;_UNICODE;%(PreprocessorDefinitions) true - MultiThreadedDLL - 2Bytes true - false - .\URel/GENERIC.pch - .\URel/ - .\URel/ - .\URel/ - Level3 - true NDEBUG;isunicode;_UNICODE;UNICODE;%(PreprocessorDefinitions) 0x0809 - odbc32.lib;odbccp32.lib;omnisu.lib;%(AdditionalDependencies) - .\URel/generic.dll - true - thirdparty\omnis.sdk\win\ulibs;%(AdditionalLibraryDirectories) - libc.lib;%(IgnoreSpecificDefaultLibraries) - .\Generic.def - .\URel/GENERIC.pdb Windows - - .\URel/GENERIC.lib MachineX86 - false - - true - .\URel/GENERIC.bsc - - - - NDEBUG;%(PreprocessorDefinitions) - true - true - .\Release/GENERIC.tlb - - - + - MinSpace - OnlyExplicitInline - thirdparty\omnis.sdk\win\complib;thirdparty\omnis.xcomp.framework;%(AdditionalIncludeDirectories) - NDEBUG;is64bit;_WINDOWS;iswin32;isXCOMPLIB;NO_STRICT;isunicode;UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;_UNICODE;OMNISSDK=100;%(PreprocessorDefinitions) - true - MultiThreadedDLL - Default - true - false - .\URel64/example.pch - .\URel64/ - .\URel64/ - .\URel64/ - Level3 - true + Disabled + $(OM_C_DEBUG_FLAGS);_DEBUG;isXCOMPLIB;NO_STRICT;WIN32;_WINDOWS;iswin32;isunicode;UNICODE;_UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;OMNISSDK=110;%(PreprocessorDefinitions) + false + MultiThreadedDebugDLL - NDEBUG;isunicode;_UNICODE;UNICODE;is64bit;%(PreprocessorDefinitions) + _DEBUG;isunicode;_UNICODE;UNICODE;%(PreprocessorDefinitions) 0x0809 - odbc32.lib;odbccp32.lib;omnisu64.lib;%(AdditionalDependencies) - .\URel64/example.dll - true - thirdparty\omnis.sdk\win\ulibs;%(AdditionalLibraryDirectories) - libc.lib;%(IgnoreSpecificDefaultLibraries) - .\example.def - .\URel64/example.pdb + true Windows - - - .\URel64/example.lib - false + MachineX86 - - true - .\URel64/GENERIC.bsc - - - - _DEBUG;%(PreprocessorDefinitions) - true - true - Win32 - .\Debug/GENERIC.tlb - - + - Disabled - thirdparty\omnis.sdk\win\complib;%(AdditionalIncludeDirectories) - _DEBUG;WIN32;_WINDOWS;iswin32;isXCOMPLIB;NO_STRICT;isunicode;_UNICODE;UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions) - true - MultiThreadedDebugDLL - 2Bytes - false - .\UDeb/GENERIC.pch - .\UDeb/ - .\UDeb/ - .\UDeb/ - Level3 - true - EditAndContinue + MinSpace + OnlyExplicitInline + NDEBUG;isXCOMPLIB;NO_STRICT;is64bit;_WINDOWS;iswin32;isunicode;UNICODE;_UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;OMNISSDK=110;%(PreprocessorDefinitions) + true + MultiThreadedDLL + true - _DEBUG;isunicode;_UNICODE;UNICODE;%(PreprocessorDefinitions) + NDEBUG;isunicode;_UNICODE;UNICODE;is64bit;%(PreprocessorDefinitions) 0x0809 - odbc32.lib;odbccp32.lib;omnisu.lib;%(AdditionalDependencies) - .\UDeb/generic.dll - true - thirdparty\omnis.sdk\win\ulibs;%(AdditionalLibraryDirectories) - libc.lib;%(IgnoreSpecificDefaultLibraries) - .\Generic.def - true - .\UDeb/GENERIC.pdb Windows - - .\UDeb/GENERIC.lib - MachineX86 + MachineX64 - - true - .\UDeb/GENERIC.bsc - - - - _DEBUG;%(PreprocessorDefinitions) - true - true - .\Debug/GENERIC.tlb - - - + Disabled - thirdparty\omnis.sdk\win\complib;thirdparty\omnis.xcomp.framework;%(AdditionalIncludeDirectories) - _DEBUG;is64bit;_WINDOWS;iswin32;isXCOMPLIB;NO_STRICT;isunicode;_UNICODE;UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;OMNISSDK=100;%(PreprocessorDefinitions) + $(OM_C_DEBUG_FLAGS);_DEBUG;isXCOMPLIB;NO_STRICT;is64bit;_WINDOWS;iswin32;isunicode;UNICODE;_UNICODE;_CRT_SECURE_NO_DEPRECATE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_NONSTDC_NO_DEPRECATE;OMNISSDK=110;%(PreprocessorDefinitions) + false MultiThreadedDebugDLL - Default - false - .\UDeb64/example.pch - .\UDeb64/ - .\UDeb64/ - .\UDeb64/ - Level3 - true - ProgramDatabase _DEBUG;isunicode;_UNICODE;UNICODE;is64bit;%(PreprocessorDefinitions) 0x0809 - odbc32.lib;odbccp32.lib;omnisu64.lib;%(AdditionalDependencies) - .\UDeb64/example.dll - true - thirdparty\omnis.sdk\win\ulibs;%(AdditionalLibraryDirectories) - libc.lib;%(IgnoreSpecificDefaultLibraries) - .\example.def true - .\UDeb64/example.pdb Windows - - - .\UDeb64/example.lib + MachineX64 - - true - .\UDeb64/GENERIC.bsc - @@ -297,10 +175,7 @@ - - - - + @@ -318,6 +193,9 @@ + + + diff --git a/example.vcxproj.filters b/example.vcxproj.filters index 1941629..b55e841 100644 --- a/example.vcxproj.filters +++ b/example.vcxproj.filters @@ -1,51 +1,8 @@  - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - omnis.xcomp.framework - - - - - - - - - - - - - - {f46b3caa-59da-41fa-aea0-0fc061e6e6e5} - - omnis.xcomp.framework @@ -80,8 +37,73 @@ omnis.xcomp.framework - - - + + source + + + source + + + source + + + + + {042c8f37-28e8-4eac-833d-4d8cd3ba4f61} + + + {10e9e5b8-e8a7-4a18-a057-3e0006209318} + + + {f46b3caa-59da-41fa-aea0-0fc061e6e6e5} + + + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + omnis.xcomp.framework + + + source + + + source + + + source + + + + + resources + + + + + resources + - \ No newline at end of file + diff --git a/omnis.xcconfig b/mac/omnis.xcconfig old mode 100755 new mode 100644 similarity index 100% rename from omnis.xcconfig rename to mac/omnis.xcconfig diff --git a/oExample.xcodeproj/project.pbxproj b/oExample.xcodeproj/project.pbxproj index 76083e9..28d2a59 100755 --- a/oExample.xcodeproj/project.pbxproj +++ b/oExample.xcodeproj/project.pbxproj @@ -44,7 +44,7 @@ /* Begin PBXFileReference section */ 089C167EFE841241C02AAC07 /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 304CD2D61CB7F5190096035F /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; }; - 62173718279B1A2D008C41A4 /* omnis.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = omnis.xcconfig; sourceTree = ""; }; + 62173718279B1A2D008C41A4 /* omnis.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = mac/omnis.xcconfig; sourceTree = ""; }; 96CA4E650907EB0700C234AA /* complib.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = complib.framework; path = thirdparty/omnis.sdk/mac/complib/complib.framework; sourceTree = SOURCE_ROOT; }; DDD258BC092896A5006B6BC3 /* oExample.u_xcomp */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = oExample.u_xcomp; sourceTree = BUILT_PRODUCTS_DIR; }; DE1E766F2C1A86770095FAB9 /* oBaseNVComponent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = oBaseNVComponent.h; path = thirdparty/omnis.xcomp.framework/oBaseNVComponent.h; sourceTree = ""; }; diff --git a/windows/omnis_environment.props b/windows/omnis_environment.props new file mode 100644 index 0000000..65a341e --- /dev/null +++ b/windows/omnis_environment.props @@ -0,0 +1,51 @@ + + + + + build\$(Configuration)_$(PlatformShortName) + intbuild + $(OMNIS_INTBUILD_DIR)\debugsymbols_$(PlatformShortName) + thirdparty\omnis.sdk\win + $(Configuration) + + + $(OMNIS_BUILD_ROOT)\ + $(OMNIS_INTBUILD_DIR)\$(ProjectName)\$(Configuration)_$(PlatformShortName)\ + 10.0.22621.0 + + + + Level3 + false + $(BYTE_PACKING) + stdcpp17 + + + libc.lib;%(IgnoreSpecificDefaultLibraries) + true + $(DEBUGSYMBOLS_LOCATION)\$(TargetName).pdb + + + + + $(OMNIS_BUILD_ROOT) + true + + + $(OMNIS_INTBUILD_DIR) + true + + + $(DEBUGSYMBOLS_LOCATION) + true + + + $(SDK_LOCATION) + true + + + $(CONFIG) + true + + + \ No newline at end of file diff --git a/windows/xcomp.props b/windows/xcomp.props new file mode 100644 index 0000000..77652d9 --- /dev/null +++ b/windows/xcomp.props @@ -0,0 +1,22 @@ + + + + + $(OMNIS_BUILD_ROOT)\xcomp\ + + + + source\shared;source;..\source;..\source\shared;$(SDK_LOCATION)\include;%(AdditionalIncludeDirectories) + false + true + + + $(SDK_LOCATION)\libs\$(Configuration)_$(PlatformShortName);%(AdditionalLibraryDirectories) + complib.lib;%(AdditionalDependencies) + $(TargetName).def + $(IntDir)$(TargetName).lib + libc.lib;%(IgnoreSpecificDefaultLibraries) + $(DEBUGSYMBOLS_LOCATION)\xcomp\$(TargetName).pdb + + + \ No newline at end of file