Commit 7ff1e75c authored by Ghislain MARY's avatar Ghislain MARY

Correctly package desktop for raspberry.

parent 1358f77a
...@@ -47,6 +47,10 @@ class DesktopTarget(prepare.Target): ...@@ -47,6 +47,10 @@ class DesktopTarget(prepare.Target):
self.config_file = 'configs/config-desktop.cmake' self.config_file = 'configs/config-desktop.cmake'
self.output = 'OUTPUT/' + self.name self.output = 'OUTPUT/' + self.name
self.external_source_path = os.path.join(current_path, 'submodules') self.external_source_path = os.path.join(current_path, 'submodules')
self.packaging_args = [
"-DCMAKE_SKIP_INSTALL_RPATH=YES",
"-DENABLE_RELATIVE_PREFIX=YES"
]
class DesktopRaspberryTarget(prepare.Target): class DesktopRaspberryTarget(prepare.Target):
...@@ -59,8 +63,10 @@ class DesktopRaspberryTarget(prepare.Target): ...@@ -59,8 +63,10 @@ class DesktopRaspberryTarget(prepare.Target):
self.toolchain_file = 'toolchains/toolchain-raspberry.cmake' self.toolchain_file = 'toolchains/toolchain-raspberry.cmake'
self.output = 'OUTPUT/' + self.name self.output = 'OUTPUT/' + self.name
self.external_source_path = os.path.join(current_path, 'submodules') self.external_source_path = os.path.join(current_path, 'submodules')
self.additional_args += ['-DCMAKE_INSTALL_RPATH=$ORIGIN/../lib'] self.packaging_args = [
self.additional_args += ['-DENABLE_RELATIVE_PREFIX=YES'] "-DCMAKE_INSTALL_RPATH=$ORIGIN/../lib",
"-DENABLE_RELATIVE_PREFIX=YES"
]
class PythonTarget(prepare.Target): class PythonTarget(prepare.Target):
...@@ -128,11 +134,6 @@ class DesktopPreparator(prepare.Preparator): ...@@ -128,11 +134,6 @@ class DesktopPreparator(prepare.Preparator):
self.additional_args += ["-DENABLE_VPX=YES"] self.additional_args += ["-DENABLE_VPX=YES"]
self.additional_args += ["-DENABLE_X264=NO"] self.additional_args += ["-DENABLE_X264=NO"]
if self.args.package:
self.additional_args += ["-DENABLE_PACKAGING=YES"]
self.additional_args += ["-DCMAKE_SKIP_INSTALL_RPATH=YES"]
self.additional_args += ["-DENABLE_RELATIVE_PREFIX=YES"]
def check_environment(self): def check_environment(self):
ret = prepare.Preparator.check_environment(self) ret = prepare.Preparator.check_environment(self)
if platform.system() == 'Windows': if platform.system() == 'Windows':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment