Skip to content
Permalink
Browse files

[mxe] autopep8

  • Loading branch information
elpaso committed Feb 8, 2018
1 parent b817a3f commit 4bd385ff394fae980f2bd3ea531a589c05ccd4b3
Showing with 12 additions and 7 deletions.
  1. +12 −7 ms-windows/mxe/deploy.py
19 ms-windows/mxe/deploy.py 100755 → 100644
@@ -22,9 +22,12 @@
import argparse
parser = argparse.ArgumentParser()

parser.add_argument("--build", help="where to place libraries, optional, files will go to target location by default")
parser.add_argument("--objdump", help="objdump executable (/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump)")
parser.add_argument("--libs", help="where to search for libraries (optional) infers from objdump")
parser.add_argument(
"--build", help="where to place libraries, optional, files will go to target location by default")
parser.add_argument(
"--objdump", help="objdump executable (/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump)")
parser.add_argument(
"--libs", help="where to search for libraries (optional) infers from objdump")
parser.add_argument("target")

args = parser.parse_args()
@@ -42,9 +45,9 @@

libs = args.libs
if not args.libs:
libs = objdump_path.replace('/bin', '').replace('-objdump','')
libs = objdump_path.replace('/bin', '').replace('-objdump', '')



# build_path = "/home/user/ClionProjects/project/build/"
# libs = "/home/user/mxe/usr/i686-w64-mingw32.shared"
# objdump_path = "/home/user/mxe/usr/bin/i686-w64-mingw32.shared-objdump"
@@ -56,7 +59,7 @@ def run_check():


def find_dll(dll):
out = subprocess.getoutput("find " + libs + " | grep -i '" + dll+"$'")
out = subprocess.getoutput("find " + libs + " | grep -i '" + dll + "$'")
return out.strip('\n')


@@ -107,6 +110,7 @@ def library_install_objdump(path, level):
level += 1
library_install_objdump(dll, level)


skip_libs = list()
done = list()

@@ -115,9 +119,10 @@ def main():

os.chdir(build_path)

#library_install_exe(target)
# library_install_exe(target)
library_install_objdump(target, 0)

pass


main()

0 comments on commit 4bd385f

Please sign in to comment.
You can’t perform that action at this time.