InternationalColorConsortium / DemoIccMAX

Demonstration Implementation for iccMAX color profiles
Other
121 stars 37 forks source link

IccXML/CmdLine | Fixup Xcode SubProject Folders, Address Relative Path Issues, Build Script for Release + Debug #73

Closed xsscx closed 5 months ago

xsscx commented 5 months ago

This PR: Fixup Xcode SubProject Folders, Address Relative Path Issues, Build Script and Unit Test

Build Platform

kern.version: Darwin Kernel Version 23.5.0: Wed May  1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64
kern.osversion: 23F79
kern.iossupportversion: 17.5
kern.osproductversioncompat: 10.16
kern.osproductversion: 14.5
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: x86_64-apple-darwin23.5.0
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Darwin Cryptex Management Interface Version 2.0.0: Wed Jun 29 00:19:41 PDT 2022; root:libcryptex_executables-170.100.24~552/cryptexctl/WEN_ETA_X86_64
machdep.cpu.brand_string: Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
machdep.cpu.brand: 0

Clean

rm -rf CMakeCache.txt Release Debug build CMakeFiles CMakeScripts cmake_install.cmake
cmake -G Xcode .

Build

IccXML/CmdLine/IccFromXml % ./xnu_build_cmd_IccFromXml.zsh | grep "BUILD"

Building scheme 'ALL_BUILD' with configuration 'Debug'...
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project IccFromXml.xcodeproj -scheme ALL_BUILD -configuration Debug -destination platform=macOS,arch=x86_64 clean build
    Target 'ALL_BUILD' in project 'IccFromXml'
...
** BUILD SUCCEEDED **
Building scheme 'ALL_BUILD' with configuration 'Release'...
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project IccFromXml.xcodeproj -scheme ALL_BUILD -configuration Release -destination platform=macOS,arch=x86_64 clean build
    Target 'ALL_BUILD' in project 'IccFromXml'

** BUILD SUCCEEDED **

IccXML/CmdLine/IccToXml % ./xnu_build_cmd_IccToXml.zsh| grep "BUILD"

Building scheme 'ALL_BUILD' with configuration 'Debug'...
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project IccToXml.xcodeproj -scheme ALL_BUILD -configuration Debug -destination platform=macOS,arch=x86_64 clean build
    Target 'ALL_BUILD' in project 'IccToXml'
...
** BUILD SUCCEEDED **
Building scheme 'ALL_BUILD' with configuration 'Release'...
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project IccToXml.xcodeproj -scheme ALL_BUILD -configuration Release -destination platform=macOS,arch=x86_64 clean build
    Target 'ALL_BUILD' in project 'IccToXml'
...
** BUILD SUCCEEDED **
Building scheme 'ALL_BUILD' with configuration 'MinSizeRel'...
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project IccToXml.xcodeproj -scheme ALL_BUILD -configuration MinSizeRel -destination platform=macOS,arch=x86_64 clean build
    Target 'ALL_BUILD' in project 'IccToXml'
...
** BUILD SUCCEEDED **
Building scheme 'ALL_BUILD' with configuration 'RelWithDebInfo'...
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project IccToXml.xcodeproj -scheme ALL_BUILD -configuration RelWithDebInfo -destination platform=macOS,arch=x86_64 clean build
    Target 'ALL_BUILD' in project 'IccToXml'
...
** BUILD SUCCEEDED **

Unit Test for TestCIccTagXmlProfileSequenceId()

TestCIccTagXmlProfileSequenceId.cpp: This unit test is designed to verify the parsing functionality of the CIccTagXmlProfileSequenceId class from the IccLibXML library. It uses libxml2 to create a sample XML document and tests how the CIccTagXmlProfileSequenceId class processes this input. The test checks for both correct and incorrect scenarios.

xsscx commented 5 months ago

Going to Close and open Fresh PR for these items.