Skip to content

Commit

Permalink
DWE-3790: Added logging statements back in
Browse files Browse the repository at this point in the history
  • Loading branch information
Flood Ryan A authored and Flood Ryan A committed Oct 12, 2023
1 parent 5f80b0a commit 7330312
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Android/build_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import os
import re
import subprocess
from typing import List
import subprocess
import patch
from typing import List

from util import ARCHITECTURES, BASE, SYSROOT, env_vars, ndk_unified_toolchain, parse_args

logger = logging.getLogger(__name__)

class Package:
def __init__(self, target_arch_name: str, android_api_level: int):
self.target_arch_name = target_arch_name
Expand All @@ -18,6 +19,7 @@ def __init__(self, target_arch_name: str, android_api_level: int):

def run(self, cmd: List[str]):
cwd = BASE / 'deps' / re.sub(r'\.tar\..*', '', os.path.basename(self.source))
logger.debug(f'Running in {cwd}: ' + ' '.join([shlex.quote(str(arg)) for arg in cmd]))
subprocess.check_call(cmd, cwd=cwd)

def build(self):
Expand Down Expand Up @@ -95,6 +97,8 @@ def configure(self):
os.environ['PATH'],
))

logger.debug(f'$PATH for OpenSSL: {path}')

os.environ['PATH'] = path

openssl_target = 'android-' + self.target_arch_name
Expand Down

0 comments on commit 7330312

Please sign in to comment.