Changeset 165452 in webkit


Ignore:
Timestamp:
Mar 11, 2014 8:09:12 AM (10 years ago)
Author:
Martin Robinson
Message:

[GTK] The jhbuild environment should set CMAKE_PREFIX_PATH and CMAKE_LIBRARY_PATH
https://bugs.webkit.org/show_bug.cgi?id=130064

Reviewed by Philippe Normand.

  • efl/jhbuildrc: Remove duplicated code.
  • gtk/jhbuildrc: Remove duplicated code.
  • jhbuild/jhbuildrc_common.py:

(init): Move duplicated code from jhbuildrc's and extend setting CMake environment variables to
GTK+. We always set the CMAKE_LIBRARY_PATH, which should be harmless for EFL 32-bit systems.
and is apparently necessary for GTK+.

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r165451 r165452  
     12014-03-11  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [GTK] The jhbuild environment should set CMAKE_PREFIX_PATH and CMAKE_LIBRARY_PATH
     4        https://bugs.webkit.org/show_bug.cgi?id=130064
     5
     6        Reviewed by Philippe Normand.
     7
     8        * efl/jhbuildrc: Remove duplicated code.
     9        * gtk/jhbuildrc: Remove duplicated code.
     10        * jhbuild/jhbuildrc_common.py:
     11        (init): Move duplicated code from jhbuildrc's and extend setting CMake environment variables to
     12        GTK+. We always set the CMAKE_LIBRARY_PATH, which should be harmless for EFL 32-bit systems.
     13        and is apparently necessary for GTK+.
     14
    1152014-03-11  László Langó  <llango.u-szeged@partner.samsung.com>
    216
  • trunk/Tools/efl/jhbuildrc

    r164585 r165452  
    2323jhbuildrc_common.init(globals(), "efl")
    2424
    25 if 'NUMBER_OF_PROCESSORS' in os.environ:
    26     jobs = os.environ['NUMBER_OF_PROCESSORS']
    27 
    28 # Use system libraries while building.
    29 if use_lib64:
    30     _libdir = 'lib64'
    31 else:
    32     _libdir = 'lib'
    33 addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', _libdir, 'pkgconfig'))
    34 addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
    35 
    3625addpath('XDG_DATA_DIRS', '/usr/share')
    3726addpath('XDG_CONFIG_DIRS', '/etc/xdg')
    3827
    39 addpath('CMAKE_PREFIX_PATH', prefix)
    40 
    41 # jhbuild installs libraries into lib64/ by default when building on
    42 # 64-bit Linux installations, while CMake does not look for libraries
    43 # in lib64/ if /etc/debian_version exists. For now we just pass the
    44 # lib64/ directory to the CMAKE_LIBRARY_PATH environment variable to
    45 # make sure the libraries installed by jhbuild are found by CMake on
    46 # Debian-based systems as well.
    47 if use_lib64:
    48     addpath('CMAKE_LIBRARY_PATH', os.path.join(prefix, _libdir))
    49 
    5028partial_build = False
    51 
    52 # Avoid runtime conflicts with GStreamer system-wide plugins. We want
    53 # to use only the plugins we build in JHBuild.
    54 os.environ['GST_PLUGIN_SYSTEM_PATH'] = ''
  • trunk/Tools/gtk/jhbuildrc

    r164585 r165452  
    2626import common
    2727
    28 if 'NUMBER_OF_PROCESSORS' in os.environ:
    29     jobs = os.environ['NUMBER_OF_PROCESSORS']
    30 
    3128# GTK+ 3.0.12 misses the -lm flag when linking the tests.
    3229module_makeargs['gtk+'] = 'LDFLAGS="-lm" ' + makeargs
    33 
    34 # Avoid runtime conflicts with GStreamer system-wide plugins. We want
    35 # to use only the plugins we build in JHBuild.
    36 os.environ['GST_PLUGIN_SYSTEM_PATH'] = ''
    3730
    3831# We always enable introspection so that we can sniff out problems with our
  • trunk/Tools/jhbuild/jhbuildrc_common.py

    r164585 r165452  
    6363    jhbuildrc_globals["nonotify"] = True
    6464    jhbuildrc_globals["notrayicon"] = True
     65
     66    if 'NUMBER_OF_PROCESSORS' in os.environ:
     67        jhbuildrc_globals['jobs'] = os.environ['NUMBER_OF_PROCESSORS']
     68
     69    # Avoid runtime conflicts with GStreamer system-wide plugins. We want
     70    # to use only the plugins we build in JHBuild.
     71    os.environ['GST_PLUGIN_SYSTEM_PATH'] = ''
     72
     73    # Use system libraries while building.
     74    if jhbuildrc_globals['use_lib64']:
     75        _library_dir = 'lib64'
     76    else:
     77        _library_dir = 'lib'
     78    addpath = jhbuildrc_globals['addpath']
     79    addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', _library_dir, 'pkgconfig'))
     80    addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
     81
     82    prefix = jhbuildrc_globals['prefix']
     83    addpath('CMAKE_PREFIX_PATH', prefix)
     84    addpath('CMAKE_LIBRARY_PATH', os.path.join(prefix, _library_dir))
Note: See TracChangeset for help on using the changeset viewer.