diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-06-05 19:00:04 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-06-05 19:12:20 +0200 |
commit | 7d98cfa50b6f1913251d3376212aa9d5b2827a88 (patch) | |
tree | 645085bf805d173413eb56bc3b5c4385b36e297c /recipes | |
parent | 19bcfce08ca9d9d3daad2291921258a070acb954 (diff) |
gst-sdk-tutorials: only install the files for the target arch
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/gst-sdk-tutorials.recipe | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/recipes/gst-sdk-tutorials.recipe b/recipes/gst-sdk-tutorials.recipe index e8ea112..a4a2d4c 100644 --- a/recipes/gst-sdk-tutorials.recipe +++ b/recipes/gst-sdk-tutorials.recipe @@ -18,12 +18,20 @@ class Recipe(recipe.Recipe): files_tutorials = [] for dirname, dirnames, filenames in os.walk(os.path.join(self.build_dir, 'gst-sdk')): dirname = dirname.replace(os.path.abspath(self.build_dir) + '/', '') - if self.config.target_platform != Platform.WINDOWS: - if dirname.startswith(os.path.join('gst-sdk', 'tutorials', 'vs2010')): + if self.config.target_platform == Platform.IOS: + if not dirname.startswith(os.path.join('gst-sdk', 'tutorials', 'xcode iOS')): continue - if self.config.target_platform != Platform.DARWIN: - if dirname.startswith(os.path.join('gst-sdk', 'tutorials', 'xcode')): + elif self.config.target_platform == Platform.ANDROID: + if not dirname.startswith(os.path.join('gst-sdk', 'tutorials', 'android')): continue + else: + if self.config.target_platform != Platform.WINDOWS: + if dirname.startswith(os.path.join('gst-sdk', 'tutorials', 'vs2010')): + continue + if self.config.target_platform != Platform.DARWIN: + path = os.path.join('gst-sdk', 'tutorials', 'xcode') + if dirname == path or dirname.startswith(path + '/'): + continue for f in filenames: files_tutorials.append(os.path.join(dirname, f)) for f in files_tutorials: |