-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow compiling with CGO_ENABLED=1 and no measurement-kit (#344)
I want to build an `.aar` file that only includes experiments written in Go such that I can link such `.aar` file into the OONI app along with measurement-kit/android-libs. To this end, I need to be able to compile this repository with CGO enabled, to cross compile for Android, but without linking with MK. This work is part of #339.
- Loading branch information
1 parent
60d2060
commit 1b63702
Showing
6 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// +build !nomk | ||
|
||
package measurementkit | ||
|
||
import ( | ||
"github.com/ooni/probe-engine/measurementkit/mkcgo" | ||
) | ||
|
||
func start(settings []byte) (<-chan []byte, error) { | ||
return mkcgo.Start(settings) | ||
} | ||
|
||
func available() bool { | ||
return true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build !cgo | ||
// +build nomk | ||
|
||
package measurementkit | ||
|
||
|