Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
179bb920
Commit
179bb920
authored
Jan 26, 2014
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] adding multiprocess building and initial support for KICAD_BUILD_DYNAMIC
parent
4f29440f
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
152 additions
and
45 deletions
+152
-45
CMakeLists.txt
CMakeLists.txt
+25
-2
download_boost.cmake
CMakeModules/download_boost.cmake
+1
-1
download_cairo.cmake
CMakeModules/download_cairo.cmake
+8
-3
download_glew.cmake
CMakeModules/download_glew.cmake
+3
-3
download_libpng.cmake
CMakeModules/download_libpng.cmake
+9
-3
download_pixman.cmake
CMakeModules/download_pixman.cmake
+13
-5
download_pkgconfig.cmake
CMakeModules/download_pkgconfig.cmake
+20
-3
download_wxwidgets.cmake
CMakeModules/download_wxwidgets.cmake
+11
-16
wxwidgets-3.0.0_macosx.patch
patches/wxwidgets-3.0.0_macosx.patch
+62
-9
No files found.
CMakeLists.txt
View file @
179bb920
...
@@ -178,7 +178,6 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
...
@@ -178,7 +178,6 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wno-strict-aliasing"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wno-strict-aliasing"
)
if
(
APPLE
)
if
(
APPLE
)
set
(
KICAD_BUILD_STATIC ON
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-D__ASSERTMACROS__ -mmacosx-version-min=10.5"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-D__ASSERTMACROS__ -mmacosx-version-min=10.5"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-D__ASSERTMACROS__ -mmacosx-version-min=10.5"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-D__ASSERTMACROS__ -mmacosx-version-min=10.5"
)
...
@@ -300,10 +299,18 @@ if ( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC )
...
@@ -300,10 +299,18 @@ if ( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC )
message
(
FATAL_ERROR
"You can't build STATIC and DYNAMIC together"
)
message
(
FATAL_ERROR
"You can't build STATIC and DYNAMIC together"
)
endif
()
endif
()
if
(
KICAD_BUILD_STATIC
)
message
(
STATUS
"KICAD_BUILD_STATIC set"
)
endif
()
if
(
KICAD_BUILD_DYNAMIC
)
if
(
KICAD_BUILD_DYNAMIC
)
message
(
FATAL_ERROR
"KICAD_BUILD_DYNAMIC Not implemented yet"
)
message
(
STATUS
"KICAD_BUILD_DYNAMIC set"
)
# TODO - Library packaging/relocation
endif
()
endif
()
add_custom_target
(
lib-dependencies
DEPENDS boost cairo glew libpng pixman pkgconfig
)
include
(
download_libpng
)
include
(
download_libpng
)
...
@@ -311,6 +318,7 @@ if ( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC )
...
@@ -311,6 +318,7 @@ if ( KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC )
message
(
FATAL_ERROR
"KICAD_BUILD_* and SCRIPTING Not Implemented Yet!"
)
message
(
FATAL_ERROR
"KICAD_BUILD_* and SCRIPTING Not Implemented Yet!"
)
else
()
else
()
include
(
download_wxwidgets
)
include
(
download_wxwidgets
)
add_dependencies
(
lib-dependencies libwx
)
endif
(
KICAD_SCRIPTING_WXPYTHON
)
endif
(
KICAD_SCRIPTING_WXPYTHON
)
include
(
download_pkgconfig
)
include
(
download_pkgconfig
)
...
@@ -505,6 +513,21 @@ add_dependencies( pl_editor boost )
...
@@ -505,6 +513,21 @@ add_dependencies( pl_editor boost )
add_dependencies
(
pnsrouter boost
)
add_dependencies
(
pnsrouter boost
)
if
(
KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC
)
add_dependencies
(
pcbnew lib-dependencies
)
add_dependencies
(
eeschema lib-dependencies
)
add_dependencies
(
cvpcb lib-dependencies
)
add_dependencies
(
gal lib-dependencies
)
add_dependencies
(
common lib-dependencies
)
add_dependencies
(
pcbcommon lib-dependencies
)
add_dependencies
(
3d-viewer lib-dependencies
)
add_dependencies
(
pcad2kicadpcb lib-dependencies
)
add_dependencies
(
polygon lib-dependencies
)
add_dependencies
(
pl_editor lib-dependencies
)
add_dependencies
(
pnsrouter lib-dependencies
)
endif
()
#############
#############
# Resources #
# Resources #
#############
#############
...
...
CMakeModules/download_boost.cmake
View file @
179bb920
...
@@ -92,7 +92,7 @@ string( REPLACE "unit_test_framework" "test" boost_libs_list "${BOOST_LIBS_BUILT
...
@@ -92,7 +92,7 @@ string( REPLACE "unit_test_framework" "test" boost_libs_list "${BOOST_LIBS_BUILT
# Default Toolset
# Default Toolset
set
(
BOOST_TOOLSET
"toolset=gcc"
)
set
(
BOOST_TOOLSET
"toolset=gcc"
)
if
(
KICAD_BUILD_STATIC
)
if
(
KICAD_BUILD_STATIC
OR APPLE
)
set
(
BOOST_LINKTYPE
"link=static"
)
set
(
BOOST_LINKTYPE
"link=static"
)
else
()
else
()
unset
(
BOOST_LINKTYPE
)
unset
(
BOOST_LINKTYPE
)
...
...
CMakeModules/download_cairo.cmake
View file @
179bb920
...
@@ -37,6 +37,11 @@ find_package( BZip2 REQUIRED )
...
@@ -37,6 +37,11 @@ find_package( BZip2 REQUIRED )
set
(
PREFIX
${
DOWNLOAD_DIR
}
/cairo
)
set
(
PREFIX
${
DOWNLOAD_DIR
}
/cairo
)
if
(
KICAD_BUILD_STATIC
)
set
(
CAIRO_BUILDTYPE --disable-shared
)
endif
(
KICAD_BUILD_STATIC
)
if
(
APPLE
)
if
(
APPLE
)
set
(
CAIRO_CFLAGS
"CFLAGS="
)
set
(
CAIRO_CFLAGS
"CFLAGS="
)
...
@@ -77,7 +82,7 @@ ExternalProject_Add( cairo
...
@@ -77,7 +82,7 @@ ExternalProject_Add( cairo
#SOURCE_DIR "${PREFIX}"
#SOURCE_DIR "${PREFIX}"
#PATCH_COMMAND ""
#PATCH_COMMAND ""
CONFIGURE_COMMAND ./configure --prefix=
${
CAIRO_ROOT
}
--enable-static
--disable-shared
CONFIGURE_COMMAND ./configure --prefix=
${
CAIRO_ROOT
}
--enable-static
${
CAIRO_BUILDTYPE
}
PKG_CONFIG=
${
PROJECT_SOURCE_DIR
}
/pkgconfig_root/bin/pkg-config
PKG_CONFIG=
${
PROJECT_SOURCE_DIR
}
/pkgconfig_root/bin/pkg-config
PKG_CONFIG_PATH=
${
PROJECT_SOURCE_DIR
}
/pixman_root/lib/pkgconfig:
${
PROJECT_SOURCE_DIR
}
/libpng_root/lib/pkgconfig
PKG_CONFIG_PATH=
${
PROJECT_SOURCE_DIR
}
/pixman_root/lib/pkgconfig:
${
PROJECT_SOURCE_DIR
}
/libpng_root/lib/pkgconfig
--enable-png=yes --enable-svg=yes
--enable-png=yes --enable-svg=yes
...
@@ -88,8 +93,8 @@ ExternalProject_Add( cairo
...
@@ -88,8 +93,8 @@ ExternalProject_Add( cairo
#BINARY_DIR "${PREFIX}"
#BINARY_DIR "${PREFIX}"
BUILD_COMMAND
make
BUILD_COMMAND
$
(
MAKE
)
INSTALL_DIR
"
${
CAIRO_ROOT
}
"
INSTALL_DIR
"
${
CAIRO_ROOT
}
"
INSTALL_COMMAND
make
install
INSTALL_COMMAND
$
(
MAKE
)
install
)
)
CMakeModules/download_glew.cmake
View file @
179bb920
...
@@ -65,8 +65,8 @@ ExternalProject_Add( glew
...
@@ -65,8 +65,8 @@ ExternalProject_Add( glew
#BINARY_DIR "${PREFIX}"
#BINARY_DIR "${PREFIX}"
BUILD_COMMAND
make
${
GLEW_CFLAGS
}
${
GLEW_LDFLAGS
}
${
GLEW_STRIP
}
BUILD_COMMAND
$
(
MAKE
)
${
GLEW_CFLAGS
}
${
GLEW_LDFLAGS
}
${
GLEW_STRIP
}
INSTALL_DIR
"
${
GLEW_ROOT
}
"
INSTALL_DIR
"
${
GLEW_ROOT
}
"
INSTALL_COMMAND
make
GLEW_DEST=
"
${
GLEW_ROOT
}
"
install && ranlib
"
${
GLEW_ROOT
}
/lib/libGLEW.a"
INSTALL_COMMAND
$
(
MAKE
)
GLEW_DEST=
"
${
GLEW_ROOT
}
"
install && ranlib
"
${
GLEW_ROOT
}
/lib/libGLEW.a"
)
)
CMakeModules/download_libpng.cmake
View file @
179bb920
...
@@ -43,6 +43,12 @@ if (APPLE)
...
@@ -43,6 +43,12 @@ if (APPLE)
endif
(
CMAKE_OSX_ARCHITECTURES
)
endif
(
CMAKE_OSX_ARCHITECTURES
)
endif
(
APPLE
)
endif
(
APPLE
)
if
(
KICAD_BUILD_STATIC
)
set
(
LIBPNG_OPTS --enable-static --disable-shared
)
else
()
set
(
LIBPNG_OPTS --enable-static --enable-shared
)
endif
(
KICAD_BUILD_STATIC
)
# <SOURCE_DIR> = ${PREFIX}/src/glew
# <SOURCE_DIR> = ${PREFIX}/src/glew
# There is a Bazaar 'boost scratch repo' in <SOURCE_DIR>/boost and after committing pristine
# There is a Bazaar 'boost scratch repo' in <SOURCE_DIR>/boost and after committing pristine
# download, the patch is applied. This lets you regenerate a new patch at any time
# download, the patch is applied. This lets you regenerate a new patch at any time
...
@@ -59,11 +65,11 @@ ExternalProject_Add( libpng
...
@@ -59,11 +65,11 @@ ExternalProject_Add( libpng
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
#PATCH_COMMAND "true"
#PATCH_COMMAND "true"
CONFIGURE_COMMAND ./configure --prefix=
${
LIBPNG_ROOT
}
--enable-static --disable-shared
${
LIBPNG_CFLAGS
}
--disable-dependency-tracking
CONFIGURE_COMMAND ./configure --prefix=
${
LIBPNG_ROOT
}
${
LIBPNG_OPTS
}
${
LIBPNG_CFLAGS
}
--disable-dependency-tracking
#BINARY_DIR "${PREFIX}"
#BINARY_DIR "${PREFIX}"
BUILD_COMMAND
make
BUILD_COMMAND
$
(
MAKE
)
INSTALL_DIR
"
${
LIBPNG_ROOT
}
"
INSTALL_DIR
"
${
LIBPNG_ROOT
}
"
INSTALL_COMMAND
make
install
INSTALL_COMMAND
$
(
MAKE
)
install
)
)
CMakeModules/download_pixman.cmake
View file @
179bb920
...
@@ -37,14 +37,22 @@ find_package( BZip2 REQUIRED )
...
@@ -37,14 +37,22 @@ find_package( BZip2 REQUIRED )
set
(
PREFIX
${
DOWNLOAD_DIR
}
/pixman
)
set
(
PREFIX
${
DOWNLOAD_DIR
}
/pixman
)
set
(
PIXMAN_CPPFLAGS
"CFLAGS="
)
if
(
APPLE
)
if
(
APPLE
)
if
(
CMAKE_OSX_ARCHITECTURES
)
if
(
CMAKE_OSX_ARCHITECTURES
)
set
(
PIXMAN_CPPFLAGS
"
CFLAGS=
-arch
${
CMAKE_OSX_ARCHITECTURES
}
-fno-common -mmacosx-version-min=10.5"
)
set
(
PIXMAN_CPPFLAGS
"
${
PIXMAN_CPPFLAGS
}
-arch
${
CMAKE_OSX_ARCHITECTURES
}
-fno-common -mmacosx-version-min=10.5"
)
else
()
else
()
set
(
PIXMAN_CPPFLAGS
"
CFLAGS=
-fno-common -mmacosx-version-min=10.5"
)
set
(
PIXMAN_CPPFLAGS
"
${
PIXMAN_CPPFLAGS
}
-fno-common -mmacosx-version-min=10.5"
)
endif
(
CMAKE_OSX_ARCHITECTURES
)
endif
(
CMAKE_OSX_ARCHITECTURES
)
endif
(
APPLE
)
endif
(
APPLE
)
if
(
KICAD_BUILD_STATIC
)
set
(
PIXMAN_OPTS --enable-static=yes --enable-shared=no
)
else
()
set
(
PIXMAN_OPTS --enable-static=yes --enable-shared=yes
)
endif
(
KICAD_BUILD_STATIC
)
# <SOURCE_DIR> = ${PREFIX}/src/glew
# <SOURCE_DIR> = ${PREFIX}/src/glew
# There is a Bazaar 'boost scratch repo' in <SOURCE_DIR>/boost and after committing pristine
# There is a Bazaar 'boost scratch repo' in <SOURCE_DIR>/boost and after committing pristine
# download, the patch is applied. This lets you regenerate a new patch at any time
# download, the patch is applied. This lets you regenerate a new patch at any time
...
@@ -61,11 +69,11 @@ ExternalProject_Add( pixman
...
@@ -61,11 +69,11 @@ ExternalProject_Add( pixman
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
#PATCH_COMMAND "true"
#PATCH_COMMAND "true"
CONFIGURE_COMMAND ./configure --prefix=
${
PIXMAN_ROOT
}
--enable-static=yes --enable-shared=no
${
PIXMAN_CPPFLAGS
}
--disable-dependency-tracking
CONFIGURE_COMMAND ./configure --prefix=
${
PIXMAN_ROOT
}
${
PIXMAN_OPTS
}
${
PIXMAN_CPPFLAGS
}
--disable-dependency-tracking
#BINARY_DIR "${PREFIX}"
#BINARY_DIR "${PREFIX}"
BUILD_COMMAND
make
BUILD_COMMAND
$
(
MAKE
)
INSTALL_DIR
"
${
PIXMAN_ROOT
}
"
INSTALL_DIR
"
${
PIXMAN_ROOT
}
"
INSTALL_COMMAND
make
install
INSTALL_COMMAND
$
(
MAKE
)
install
)
)
CMakeModules/download_pkgconfig.cmake
View file @
179bb920
...
@@ -37,6 +37,12 @@ find_package( BZip2 REQUIRED )
...
@@ -37,6 +37,12 @@ find_package( BZip2 REQUIRED )
set
(
PREFIX
${
DOWNLOAD_DIR
}
/pkgconfig
)
set
(
PREFIX
${
DOWNLOAD_DIR
}
/pkgconfig
)
if
(
KICAD_BUILD_STATIC
)
set
(
PKGCONFIG_BUILDTYPE --enable-shared=no --enable-static=yes
)
else
()
set
(
PKGCONFIG_BUILDTYPE --enable-shared=yes --enable-static=yes
)
endif
(
KICAD_BUILD_STATIC
)
# <SOURCE_DIR> = ${PREFIX}/src/glew
# <SOURCE_DIR> = ${PREFIX}/src/glew
# There is a Bazaar 'boost scratch repo' in <SOURCE_DIR>/boost and after committing pristine
# There is a Bazaar 'boost scratch repo' in <SOURCE_DIR>/boost and after committing pristine
# download, the patch is applied. This lets you regenerate a new patch at any time
# download, the patch is applied. This lets you regenerate a new patch at any time
...
@@ -53,11 +59,22 @@ ExternalProject_Add( pkgconfig
...
@@ -53,11 +59,22 @@ ExternalProject_Add( pkgconfig
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
#PATCH_COMMAND "true"
#PATCH_COMMAND "true"
CONFIGURE_COMMAND ./configure --prefix=
${
PKGCONFIG_ROOT
}
--with-internal-glib
--enable-shared=no --enable-static=yes
--disable-silent-rules
CONFIGURE_COMMAND ./configure --prefix=
${
PKGCONFIG_ROOT
}
--with-internal-glib
${
PKGCONFIG_BUILDTYPE
}
--disable-silent-rules
#BINARY_DIR "${PREFIX}"
#BINARY_DIR "${PREFIX}"
BUILD_COMMAND
make
BUILD_COMMAND
$
(
MAKE
)
INSTALL_DIR
"
${
PKGCONFIG_ROOT
}
"
INSTALL_DIR
"
${
PKGCONFIG_ROOT
}
"
INSTALL_COMMAND
make
install
INSTALL_COMMAND
$
(
MAKE
)
install
)
)
#
# At second execution make install will fail ..
#
ExternalProject_Add_Step
(
pkgconfig pkgconfig_erase_dir
COMMAND rm -fr
${
PKGCONFIG_ROOT
}
COMMENT
"*** Erasing pkgconfig directory"
DEPENDEES build
)
CMakeModules/download_wxwidgets.cmake
View file @
179bb920
...
@@ -62,24 +62,26 @@ ExternalProject_Add( libwx
...
@@ -62,24 +62,26 @@ ExternalProject_Add( libwx
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
# wxOverlay PATCH for OSX
# wxOverlay PATCH for OSX
- http://trac.wxwidgets.org/ticket/12894
PATCH_COMMAND bzr patch -p0
"
${
PROJECT_SOURCE_DIR
}
/patches/wxwidgets-3.0.0_macosx.patch"
PATCH_COMMAND bzr patch -p0
"
${
PROJECT_SOURCE_DIR
}
/patches/wxwidgets-3.0.0_macosx.patch"
CONFIGURE_COMMAND ./configure --prefix=
${
LIBWX_ROOT
}
-with-opengl --enable-aui --enable-debug_info -with-expat=builtin --with-regex=builtin --enable-utf8
${
LIBWX_ARCHITECTURES
}
${
LIBWX_BUILDTYPE
}
CONFIGURE_COMMAND ./configure --prefix=
${
LIBWX_ROOT
}
-with-opengl --enable-aui --enable-debug_info -with-expat=builtin --with-regex=builtin --enable-utf8
${
LIBWX_ARCHITECTURES
}
${
LIBWX_BUILDTYPE
}
#BINARY_DIR "${PREFIX}"
#BINARY_DIR "${PREFIX}"
BUILD_COMMAND
make
BUILD_COMMAND
$
(
MAKE
)
VERBOSE=1
INSTALL_DIR
"
${
LIBWX_ROOT
}
"
INSTALL_DIR
"
${
LIBWX_ROOT
}
"
INSTALL_COMMAND make install
INSTALL_COMMAND make install
)
)
#SET directories
set
(
wxWidgets_BIN_DIR
${
LIBWX_ROOT
}
/bin
)
set
(
wxWidgets_BIN_DIR
${
LIBWX_ROOT
}
/bin
)
set
(
wxWidgets_CONFIG_EXECUTABLE
${
LIBWX_ROOT
}
/bin/wx-config
)
set
(
wxWidgets_CONFIG_EXECUTABLE
${
LIBWX_ROOT
}
/bin/wx-config
)
set
(
wxWidgets_INCLUDE_DIRS
${
LIBWX_ROOT
}
/include
)
set
(
wxWidgets_INCLUDE_DIRS
${
LIBWX_ROOT
}
/include
)
set
(
wxWidgets_LIBRARY_DIRS
${
LIBWX_ROOT
}
/lib
)
set
(
wxWidgets_LIBRARY_DIRS
${
LIBWX_ROOT
}
/lib
)
ExternalProject_Add_Step
(
libwx bzr_commit_libwx
ExternalProject_Add_Step
(
libwx bzr_commit_libwx
COMMAND bzr ci -q -m pristine <SOURCE_DIR>
COMMAND bzr ci -q -m pristine <SOURCE_DIR>
COMMENT
"committing pristine libwx files to 'libwx scratch repo'"
COMMENT
"committing pristine libwx files to 'libwx scratch repo'"
...
@@ -101,20 +103,13 @@ ExternalProject_Add_Step( libwx bzr_init_libwx
...
@@ -101,20 +103,13 @@ ExternalProject_Add_Step( libwx bzr_init_libwx
DEPENDEES download
DEPENDEES download
)
)
######
# Now is time to search what we have built
######
ExternalProject_Add_Step
(
libwx libwx_recursive_message
ExternalProject_Add_Step
(
libwx libwx_recursive_message
COMMAND cmake .
COMMAND cmake .
COMMENT
"*** RERUN CMAKE
***
"
COMMENT
"*** RERUN CMAKE
- wxWidgets built, now reissue a cmake to build Kicad
"
DEPENDEES install
DEPENDEES install
)
)
#ExternalProject_Add_Step( libwx libwx_recursive_cmake
# COMMAND cmake .
# COMMENT "recurse cmake"
# DEPENDEES libwx_recursive_message
# )
#
#ExternalProject_Add_Step( libwx libwx_recursive_make
# COMMAND make
# COMMENT "recurse make"
# DEPENDEES libwx_recursive_cmake
# )
patches/wxwidgets-3.0.0_macosx.patch
View file @
179bb920
=== modified file 'Makefile.in'
=== modified file 'Makefile.in'
--- Makefile.in 2014-01-2
2 20:34:29
+0000
--- Makefile.in 2014-01-2
6 11:10:36
+0000
+++ Makefile.in 2014-01-2
2 20:38:15
+0000
+++ Makefile.in 2014-01-2
6 11:15:53
+0000
@@ -14601,7 +14601,7 @@
@@ -14601,7 +14601,7 @@
monodll_carbon_frame.o \
monodll_carbon_frame.o \
monodll_carbon_mdi.o \
monodll_carbon_mdi.o \
...
@@ -19,6 +19,24 @@
...
@@ -19,6 +19,24 @@
monolib_carbon_popupwin.o \
monolib_carbon_popupwin.o \
monolib_carbon_renderer.o \
monolib_carbon_renderer.o \
monolib_carbon_settings.o \
monolib_carbon_settings.o \
@@ -14895,7 +14895,7 @@
coredll_carbon_frame.o \
coredll_carbon_mdi.o \
coredll_carbon_metafile.o \
- coredll_carbon_overlay.o \
+ coredll_osx_cocoa_overlay.o \
coredll_carbon_popupwin.o \
coredll_carbon_renderer.o \
coredll_carbon_settings.o \
@@ -15027,7 +15027,7 @@
corelib_carbon_frame.o \
corelib_carbon_mdi.o \
corelib_carbon_metafile.o \
- corelib_carbon_overlay.o \
+ corelib_osx_cocoa_overlay.o \
corelib_carbon_popupwin.o \
corelib_carbon_renderer.o \
corelib_carbon_settings.o \
@@ -17774,6 +17774,9 @@
@@ -17774,6 +17774,9 @@
monodll_osx_cocoa_notebook.o: $(srcdir)/src/osx/cocoa/notebook.mm $(MONODLL_ODEP)
monodll_osx_cocoa_notebook.o: $(srcdir)/src/osx/cocoa/notebook.mm $(MONODLL_ODEP)
$(CXXC) -c -o $@ $(MONODLL_OBJCXXFLAGS) $(srcdir)/src/osx/cocoa/notebook.mm
$(CXXC) -c -o $@ $(MONODLL_OBJCXXFLAGS) $(srcdir)/src/osx/cocoa/notebook.mm
...
@@ -39,10 +57,45 @@
...
@@ -39,10 +57,45 @@
monolib_osx_cocoa_radiobut.o: $(srcdir)/src/osx/cocoa/radiobut.mm $(MONOLIB_ODEP)
monolib_osx_cocoa_radiobut.o: $(srcdir)/src/osx/cocoa/radiobut.mm $(MONOLIB_ODEP)
$(CXXC) -c -o $@ $(MONOLIB_OBJCXXFLAGS) $(srcdir)/src/osx/cocoa/radiobut.mm
$(CXXC) -c -o $@ $(MONOLIB_OBJCXXFLAGS) $(srcdir)/src/osx/cocoa/radiobut.mm
@@ -33584,8 +33590,8 @@
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0@coredll_carbon_overlay.o: $(srcdir)/src/osx/carbon/overlay.cpp $(COREDLL_ODEP)
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/osx/carbon/overlay.cpp
-@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@coredll_carbon_overlay.o: $(srcdir)/src/osx/carbon/overlay.cpp $(COREDLL_ODEP)
-@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/osx/carbon/overlay.cpp
+@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@coredll_osx_cocoa_overlay.o: $(srcdir)/src/osx/cocoa/overlay.mm $(COREDLL_ODEP)
+@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/osx/cocoa/overlay.mm
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0@coredll_carbon_overlay.o: $(srcdir)/src/osx/carbon/overlay.cpp $(COREDLL_ODEP)
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/osx/carbon/overlay.cpp
@@ -37961,8 +37967,8 @@
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0@corelib_carbon_overlay.o: $(srcdir)/src/osx/carbon/overlay.cpp $(CORELIB_ODEP)
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/osx/carbon/overlay.cpp
-@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@corelib_carbon_overlay.o: $(srcdir)/src/osx/carbon/overlay.cpp $(CORELIB_ODEP)
-@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/osx/carbon/overlay.cpp
+@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@corelib_osx_cocoa_overlay.o: $(srcdir)/src/osx/cocoa/overlay.mm $(CORELIB_ODEP)
+@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/osx/cocoa/overlay.mm
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0@corelib_carbon_overlay.o: $(srcdir)/src/osx/carbon/overlay.cpp $(CORELIB_ODEP)
@COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/osx/carbon/overlay.cpp
=== modified file 'include/wx/overlay.h'
--- include/wx/overlay.h 2014-01-26 11:10:36 +0000
+++ include/wx/overlay.h 2014-01-26 11:10:44 +0000
@@ -13,7 +13,7 @@
#include "wx/defs.h"
-#if defined(__WXMAC__) && wxOSX_USE_CARBON
+#if defined(__WXMAC__) && wxOSX_USE_COCOA_OR_CARBON
#define wxHAS_NATIVE_OVERLAY 1
#elif defined(__WXDFB__)
#define wxHAS_NATIVE_OVERLAY 1
=== modified file 'include/wx/private/overlay.h'
=== modified file 'include/wx/private/overlay.h'
--- include/wx/private/overlay.h 2014-01-2
2 20:34:29
+0000
--- include/wx/private/overlay.h 2014-01-2
6 11:10:36
+0000
+++ include/wx/private/overlay.h 2014-01-2
2 20:39:13
+0000
+++ include/wx/private/overlay.h 2014-01-2
6 11:10:44
+0000
@@ -16,7 +16,11 @@
@@ -16,7 +16,11 @@
#ifdef wxHAS_NATIVE_OVERLAY
#ifdef wxHAS_NATIVE_OVERLAY
...
@@ -57,9 +110,9 @@
...
@@ -57,9 +110,9 @@
#else
#else
=== modified file 'src/osx/cocoa/overlay.mm'
=== modified file 'src/osx/cocoa/overlay.mm'
--- src/osx/cocoa/overlay.mm 2014-01-2
2 20:34:29
+0000
--- src/osx/cocoa/overlay.mm 2014-01-2
6 11:10:36
+0000
+++ src/osx/cocoa/overlay.mm 2014-01-2
2 20:40:40
+0000
+++ src/osx/cocoa/overlay.mm 2014-01-2
6 11:10:44
+0000
@@ -34,6 +3
5
,7 @@
@@ -34,6 +3
4
,7 @@
#include "wx/private/overlay.h"
#include "wx/private/overlay.h"
#ifdef wxHAS_NATIVE_OVERLAY
#ifdef wxHAS_NATIVE_OVERLAY
...
@@ -67,7 +120,7 @@
...
@@ -67,7 +120,7 @@
// ============================================================================
// ============================================================================
// implementation
// implementation
@@ -58,48 +
60
,6 @@
@@ -58,48 +
59
,6 @@
void wxOverlayImpl::CreateOverlayWindow()
void wxOverlayImpl::CreateOverlayWindow()
{
{
...
@@ -116,7 +169,7 @@
...
@@ -116,7 +169,7 @@
}
}
void wxOverlayImpl::Init( wxDC* dc, int x , int y , int width , int height )
void wxOverlayImpl::Init( wxDC* dc, int x , int y , int width , int height )
@@ -107,84 +6
7
,50 @@
@@ -107,84 +6
6
,50 @@
wxASSERT_MSG( !IsOk() , _("You cannot Init an overlay twice") );
wxASSERT_MSG( !IsOk() , _("You cannot Init an overlay twice") );
m_window = dc->GetWindow();
m_window = dc->GetWindow();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment