Skip to content

Commit

Permalink
Bug 975152 - Part 0: Allow res=None in AndroidEclipseProjectData. r=b…
Browse files Browse the repository at this point in the history
…nicholson
  • Loading branch information
ncalexan committed Feb 25, 2014
1 parent 76c7fa2 commit 3d41962
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/mozbuild/mozbuild/backend/android_eclipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ def _manifest_for_project(self, srcdir, project):

if project.res:
manifest.add_symlink(mozpath.join(srcdir, project.res), 'res')
else:
# Eclipse expects a res directory no matter what, so we
# make an empty directory if the project doesn't specify.
res = os.path.abspath(mozpath.join(os.path.dirname(__file__),
'templates', 'android_eclipse_empty_resource_directory'))
manifest.add_pattern_copy(res, '.**', 'res')

if project.assets:
manifest.add_symlink(mozpath.join(srcdir, project.assets), 'assets')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This file is named such that it is ignored by Android aapt. The file
itself ensures that the AndroidEclipse build backend can create an
empty res/ directory for projects explicitly specifying that it has no
resource directory. This is necessary because the Android Eclipse
plugin requires that each project have a res/ directory.

0 comments on commit 3d41962

Please sign in to comment.