-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switches to dune as the main build system but keeps support for OASIS with ocamlbuild and omake backends. The implementation utilizes the dune sites and plugins system, but it still supports plugins that are built with bapbuild. To ease the transition, the OASIS-built BAP is also able to load dune plugins. Later the OASIS build system will be removed from BAP but the support for bundled with bapbuild plugins will remain. Since dune sites impose their own restrictions we had to introduce a new bap-common package that manages all the sites, starting from plugins and ending with semantic files.
- Loading branch information
Showing
539 changed files
with
9,464 additions
and
2,747 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
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,56 @@ | ||
name: Build Local Packages | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
ocaml-compiler: | ||
- 4.08.x | ||
- 4.14.x | ||
|
||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.os == 'macos-11'}} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Ghidra and Dejagnu | ||
run: | | ||
sudo add-apt-repository ppa:ivg/ghidra -y | ||
sudo apt-get install libghidra-dev -y | ||
sudo apt-get install libghidra-data -y | ||
sudo apt-get install dejagnu -y | ||
- name: Use OCaml ${{ matrix.ocaml-compiler }} | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
dune-cache: true | ||
|
||
- name: Install BAP | ||
- run: opam install . | ||
|
||
|
||
- name: Run Functional Tests | ||
run: make check | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: bap-log | ||
path: ~/.local/state/bap | ||
|
||
- uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: fun-tests-log | ||
path: | | ||
testsuite/*.log | ||
testsuite/logs |
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
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,37 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
version: "dev" | ||
synopsis: "BAP plugin and library for ABI-specific transformations" | ||
maintainer: ["Ivan Gotovchits <[email protected]>"] | ||
authors: ["The BAP Team"] | ||
license: "MIT" | ||
tags: ["bap" "bap-pass" "bap-plugin"] | ||
homepage: "https://github.com/BinaryAnalysisPlatform/bap" | ||
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues" | ||
depends: [ | ||
"dune" {>= "3.1"} | ||
"bap-main" {= version} | ||
"bap-std" {= version} | ||
"core_kernel" {>= "v0.14" & < "v0.16"} | ||
"bap-common" {= version} | ||
"ppx_bap" {= version} | ||
"regular" {= version} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"--promote-install-files=false" | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
["dune" "install" "-p" name "--create-install-files" name] | ||
] | ||
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git" |
Oops, something went wrong.