Install make
This commit is contained in:
parent
29678055d0
commit
d3c275f349
|
@ -26,7 +26,7 @@ jobs:
|
||||||
chmod 600 $SSH_KEY
|
chmod 600 $SSH_KEY
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
choco.exe install pkgconfiglite ninja
|
choco.exe install pkgconfiglite ninja make
|
||||||
#- run: |
|
#- run: |
|
||||||
#ls
|
#ls
|
||||||
#libtoolize
|
#libtoolize
|
||||||
|
|
|
@ -21,6 +21,9 @@ class PlatformNeutralEnv:
|
||||||
self.log_dir):
|
self.log_dir):
|
||||||
os.makedirs(d, exist_ok=True)
|
os.makedirs(d, exist_ok=True)
|
||||||
self.detect_platform()
|
self.detect_platform()
|
||||||
|
self.make_command = self._detect_make()
|
||||||
|
if not self.make_command:
|
||||||
|
sys.exit("ERROR: make command not found.")
|
||||||
self.ninja_command = self._detect_ninja()
|
self.ninja_command = self._detect_ninja()
|
||||||
if not self.ninja_command:
|
if not self.ninja_command:
|
||||||
sys.exit("ERROR: ninja command not found.")
|
sys.exit("ERROR: ninja command not found.")
|
||||||
|
@ -55,6 +58,8 @@ class PlatformNeutralEnv:
|
||||||
if retcode == 0:
|
if retcode == 0:
|
||||||
return n
|
return n
|
||||||
|
|
||||||
|
def _detect_make(self):
|
||||||
|
return self._detect_binary('make.exe', 'make')
|
||||||
|
|
||||||
def _detect_ninja(self):
|
def _detect_ninja(self):
|
||||||
return self._detect_binary('ninja', 'ninja-build')
|
return self._detect_binary('ninja', 'ninja-build')
|
||||||
|
|
|
@ -379,7 +379,8 @@ class MakeBuilder(Builder):
|
||||||
|
|
||||||
def _compile(self, context):
|
def _compile(self, context):
|
||||||
context.try_skip(self.build_path)
|
context.try_skip(self.build_path)
|
||||||
command = "make -j4 {make_target} {make_option}".format(
|
command = "{command} -j4 {make_target} {make_option}".format(
|
||||||
|
command=neutralEnv('make_command'),
|
||||||
make_target=self.make_target,
|
make_target=self.make_target,
|
||||||
make_option=self.make_option
|
make_option=self.make_option
|
||||||
)
|
)
|
||||||
|
@ -388,7 +389,8 @@ class MakeBuilder(Builder):
|
||||||
|
|
||||||
def _install(self, context):
|
def _install(self, context):
|
||||||
context.try_skip(self.build_path)
|
context.try_skip(self.build_path)
|
||||||
command = "make {make_install_target} {make_option}".format(
|
command = "{command} {make_install_target} {make_option}".format(
|
||||||
|
command=neutralEnv('make_command'),
|
||||||
make_install_target=self.make_install_target,
|
make_install_target=self.make_install_target,
|
||||||
make_option=self.make_option
|
make_option=self.make_option
|
||||||
)
|
)
|
||||||
|
@ -397,7 +399,9 @@ class MakeBuilder(Builder):
|
||||||
|
|
||||||
def _make_dist(self, context):
|
def _make_dist(self, context):
|
||||||
context.try_skip(self.build_path)
|
context.try_skip(self.build_path)
|
||||||
command = "make dist"
|
command = "{command} dist".format(
|
||||||
|
command=neutralEnv('make_command'),
|
||||||
|
)
|
||||||
env = self.get_env(cross_comp_flags=True, cross_compilers=True, cross_path=True)
|
env = self.get_env(cross_comp_flags=True, cross_compilers=True, cross_path=True)
|
||||||
run_command(command, self.build_path, context, env=env)
|
run_command(command, self.build_path, context, env=env)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue