-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Aryan Rajoria <[email protected]>
- Loading branch information
1 parent
cd784d1
commit bdf2c5b
Showing
18 changed files
with
187 additions
and
134 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import json | ||
|
||
from symbols_db import logger | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,2 +1,12 @@ | ||
import subprocess | ||
|
||
from symbols_db import WRAPDB_LOCATION | ||
|
||
|
||
class BaseHandler: | ||
pass | ||
strip = True | ||
|
||
def strip_executables(self, file_path, loc=WRAPDB_LOCATION): | ||
if self.strip: | ||
strip_command = f"strip --strip-all {file_path}".split(" ") | ||
subprocess.run(strip_command, cwd=loc) |
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
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,16 @@ | ||
import shutil | ||
|
||
from symbols_db import WRAPDB_HASH, WRAPDB_LOCATION, WRAPDB_URL | ||
from symbols_db.handlers.git_handler import git_checkout_commit, git_clone | ||
|
||
|
||
def git_clone_wrapdb(): | ||
git_clone(WRAPDB_URL, WRAPDB_LOCATION) | ||
|
||
|
||
def git_checkout_wrapdb_commit(): | ||
git_checkout_commit(WRAPDB_LOCATION, WRAPDB_HASH) | ||
|
||
|
||
def ensure_meson_installed(): | ||
return shutil.which("meson") is not None |
Oops, something went wrong.