Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to support MacOS with CHIP.xcodeproj #765

Conversation

rwalker-apple
Copy link
Contributor

Problems

  • connector doesn't support macos
  • connector supplies unnecssary config
  • connector and xcode project have messy interface

Summary of Changes

  • simplified interface down to CHIP_ROOT, CHIP_PREFIX for guzintas, guzoutas
  • clean up include and lib search paths to use CHIP_PREFIX only
  • ensure we ship config headers

@codecov
Copy link

codecov bot commented May 19, 2020

Codecov Report

Merging #765 into master will decrease coverage by 0.47%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #765      +/-   ##
==========================================
- Coverage   58.39%   57.92%   -0.48%     
==========================================
  Files         130      130              
  Lines       12646    12646              
==========================================
- Hits         7385     7325      -60     
- Misses       5261     5321      +60     
Impacted Files Coverage Δ
src/ble/BleError.cpp 0.00% <0.00%> (-99.05%) ⬇️
src/inet/InetLayerBasis.cpp 0.00% <0.00%> (-80.00%) ⬇️
src/inet/UDPEndPoint.cpp 0.00% <0.00%> (-63.81%) ⬇️
src/inet/InetLayerBasis.h 0.00% <0.00%> (-50.00%) ⬇️
src/inet/AsyncDNSResolverSockets.cpp 0.00% <0.00%> (-46.96%) ⬇️
src/lib/core/CHIPTLVTags.h 66.66% <0.00%> (-33.34%) ⬇️
src/inet/IPAddress.cpp 0.00% <0.00%> (-18.25%) ⬇️
src/system/SystemObject.cpp 87.50% <0.00%> (-6.25%) ⬇️
src/lib/core/CHIPTLV.h 94.44% <0.00%> (-5.56%) ⬇️
src/inet/TCPEndPoint.h 0.00% <0.00%> (ø)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f40e9b7...0cd09d5. Read the comment docs.

@woody-apple
Copy link
Contributor

Holding to confirm one thing about this is building right...

@@ -20,6 +18,8 @@
B2E0D7B8245B0B5C003C5B48 /* CHIPSetupPayload.h in Headers */ = {isa = PBXBuildFile; fileRef = B2E0D7AF245B0B5C003C5B48 /* CHIPSetupPayload.h */; settings = {ATTRIBUTES = (Public, ); }; };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, we need a Build Target that will be a macOS framework. That target will essentially be a duplicate of the iOS except it builds against macOS SDK and for macOS platform.
You can right click the current iOS target and hit "Duplicate" and update the SDK it builds against. And then the build script can do its thing as it is now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary, yay!

@rwalker-apple rwalker-apple changed the title Support MacOS with CHIP.xcodeproj Try to support MacOS with CHIP.xcodeproj May 19, 2020
@rwalker-apple rwalker-apple force-pushed the Support-MacOS-with-CHIP.xcodeproj branch from 3cd8d6e to d2ea49a Compare May 19, 2020 22:10
@rwalker-apple rwalker-apple force-pushed the Support-MacOS-with-CHIP.xcodeproj branch from d2ea49a to 0cd09d5 Compare May 19, 2020 22:11
@woody-apple woody-apple merged commit 6968b12 into project-chip:master May 19, 2020
@rwalker-apple rwalker-apple deleted the Support-MacOS-with-CHIP.xcodeproj branch May 19, 2020 22:38
jmartinez-silabs added a commit to SiliconLabs/matter that referenced this pull request May 18, 2023
… is defined. make sure that it is (project-chip#26460)

Merge in WMN_TOOLS/matter from cherry-pick/Fix_multicast_addr_endianness to RC_2.0.0-1.1

Squashed commit of the following:

commit 50f8a0590cfbfb2c0d69798efb641c4d4de1a7c2
Author: Junior Martinez <67972863+jmartinez-silabs@users.noreply.github.com>
Date:   Wed May 10 09:24:21 2023 -0400

    Inet implementations assume BYTE_ORDER is defined. make sure that it is (project-chip#26460)

    * BYTE_ORDER must be defined in the project

    * fix typo

    * Remove BYTE_ORDER from the file. Only use __BYTE_ORDER__ and relative checks

    * Apply suggestions from code review

    Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

    ---------

    Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants