⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 184062 in webkit


Ignore:
Timestamp:
May 10, 2015, 8:03:07 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[CMake] Some macros need to be defined/undefined, rather than ON/OFF
https://bugs.webkit.org/show_bug.cgi?id=144845

Patch by Philip Chimento <philip.chimento@gmail.com> on 2015-05-10
Reviewed by Martin Robinson.

  • Source/cmake/OptionsGTK.cmake: Only define MOZ_X11 and XP_UNIX

if their corresponding WTF options are ON. The code in npapi.h
relies on these being undefined if they are to be switched off.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r184040 r184062  
     12015-05-10  Philip Chimento  <philip.chimento@gmail.com>
     2
     3        [CMake] Some macros need to be defined/undefined, rather than ON/OFF
     4        https://bugs.webkit.org/show_bug.cgi?id=144845
     5
     6        Reviewed by Martin Robinson.
     7
     8        * Source/cmake/OptionsGTK.cmake: Only define MOZ_X11 and XP_UNIX
     9        if their corresponding WTF options are ON. The code in npapi.h
     10        relies on these being undefined if they are to be switched off.
     11
    1122015-05-09  Yoav Weiss  <yoav@yoav.ws>
    213
  • trunk/Source/cmake/OptionsGTK.cmake

    r184040 r184062  
    189189
    190190SET_AND_EXPOSE_TO_BUILD(WTF_PLATFORM_X11 ${ENABLE_X11_TARGET})
    191 SET_AND_EXPOSE_TO_BUILD(MOZ_X11 ${ENABLE_X11_TARGET})
    192 SET_AND_EXPOSE_TO_BUILD(XP_UNIX ${WTF_OS_UNIX})
    193191SET_AND_EXPOSE_TO_BUILD(WTF_PLATFORM_WAYLAND ${ENABLE_WAYLAND_TARGET})
     192
     193# MOZ_X11 and XP_UNIX are required by npapi.h. Their value is not checked;
     194# only their definedness is. They should only be defined in the true case.
     195if (${ENABLE_X11_TARGET})
     196    SET_AND_EXPOSE_TO_BUILD(MOZ_X11 1)
     197endif ()
     198if (${WTF_OS_UNIX})
     199    SET_AND_EXPOSE_TO_BUILD(XP_UNIX 1)
     200endif ()
    194201
    195202set(USE_UDIS86 ON)
Note: See TracChangeset for help on using the changeset viewer.