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
2acaa287
Commit
2acaa287
authored
Feb 08, 2014
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Fixing build system, sorry guys, refining build system and make building smoother.
parent
e7d2b9b4
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
13 deletions
+18
-13
CMakeLists.txt
CMakeLists.txt
+3
-3
download_swig.cmake
CMakeModules/download_swig.cmake
+4
-2
download_wxpython.cmake
CMakeModules/download_wxpython.cmake
+1
-1
mac-osx.txt
Documentation/compiling/mac-osx.txt
+5
-2
wxpython-3.0.0_macosx_multiarch.patch
patches/wxpython-3.0.0_macosx_multiarch.patch
+4
-4
CMakeLists.txt
pcbnew/CMakeLists.txt
+1
-1
Info.plist
tools/Info.plist
+0
-0
No files found.
CMakeLists.txt
View file @
2acaa287
...
...
@@ -341,7 +341,9 @@ add_definitions(-DWX_COMPATIBILITY)
find_package
(
OpenGL QUIET
)
check_find_package_result
(
OPENGL_FOUND
"OpenGL"
)
if
(
KICAD_SCRIPTING_WXPYTHON
)
if
(
KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC
)
add_custom_target
(
lib-wxpython
)
include
(
download_pcre
)
include
(
download_swig
)
...
...
@@ -349,9 +351,7 @@ add_custom_target( lib-wxpython )
add_dependencies
(
lib-wxpython pcre
)
add_dependencies
(
lib-wxpython swig
)
add_dependencies
(
lib-wxpython libwxpython
)
endif
()
if
(
KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC
)
#set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so;.dylib;.dll")
...
...
CMakeModules/download_swig.cmake
View file @
2acaa287
...
...
@@ -42,8 +42,10 @@ if (APPLE)
set
(
SWIG_CFLAGS
"CFLAGS=-arch
${
CMAKE_OSX_ARCHITECTURES
}
-mmacosx-version-min=10.5"
)
set
(
SWIG_CXXFLAGS
"CXXFLAGS=-arch
${
CMAKE_OSX_ARCHITECTURES
}
-mmacosx-version-min=10.5"
)
set
(
SWIG_LDFLAGS
"LDFLAGS=-arch
${
CMAKE_OSX_ARCHITECTURES
}
-mmacosx-version-min=10.5"
)
set
(
SWIG_PYTHON
"--with-python=/usr/bin/python2.6"
)
endif
(
CMAKE_OSX_ARCHITECTURES
)
set
(
SWIG_PYTHON
"--with-python=/usr/bin/python2.6"
)
set
(
SWIG_OPTS --disable-dependency-tracking
)
endif
(
APPLE
)
# <SOURCE_DIR> = ${PREFIX}/src/glew
...
...
@@ -66,7 +68,7 @@ ExternalProject_Add( swig
UPDATE_COMMAND
${
CMAKE_COMMAND
}
-E remove_directory
"
${
SWIG_ROOT
}
"
#PATCH_COMMAND "true"
CONFIGURE_COMMAND ./configure --prefix=
${
SWIG_ROOT
}
--with-pcre-prefix=
${
PCRE_ROOT
}
${
SWIG_CFLAGS
}
${
SWIG_LDFLAGS
}
${
SWIG_CXXFLAGS
}
${
SWIG_PYTHON
}
CONFIGURE_COMMAND ./configure --prefix=
${
SWIG_ROOT
}
--with-pcre-prefix=
${
PCRE_ROOT
}
${
SWIG_CFLAGS
}
${
SWIG_LDFLAGS
}
${
SWIG_CXXFLAGS
}
${
SWIG_PYTHON
}
${
SWIG_OPTS
}
#BINARY_DIR "${PREFIX}"
...
...
CMakeModules/download_wxpython.cmake
View file @
2acaa287
...
...
@@ -74,7 +74,7 @@ ExternalProject_Add( libwxpython
UPDATE_COMMAND
${
CMAKE_COMMAND
}
-E remove_directory
"
${
LIBWXPYTHON_ROOT
}
"
COMMAND
${
LIBWXPYTHON_EXEC
}
wxPython/build-wxpython.py --clean
CONFIGURE_COMMAND
${
LIBWXPYTHON_EXEC
}
wxPython/build-wxpython.py --prefix=
/Users/marco/Development/product/libwxpython_root
--unicode --install
${
LIBWXPYTHON_OPTS
}
CONFIGURE_COMMAND
${
LIBWXPYTHON_EXEC
}
wxPython/build-wxpython.py --prefix=
${
LIBWXPYTHON_ROOT
}
--unicode --install
${
LIBWXPYTHON_OPTS
}
#BINARY_DIR "${PREFIX}"
...
...
Documentation/compiling/mac-osx.txt
View file @
2acaa287
...
...
@@ -27,18 +27,21 @@ Building Kicad with no support for Scripting
If you set KICAD_BUILD_DYNAMIC the building system will build all and include
the needed libraries for each executable in its bundle
cmake -DKICAD_BUILD_DYNAMIC=ON .
make
Building Kicad with support for Scripting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due some problems with some dependencies the build of this kind of binary is a bit
more complex, you should initially set KICAD_BUILD_DYNAMIC
then issue for example
cmake -DKICAD_BUILD_DYNAMIC=ON
cmake -DKICAD_BUILD_DYNAMIC=ON
.
make lib-wxpython
After successfully building you can set your KICAD_SCRIPTING* options (for example):
cmake -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_WXPYTHON=ON
cmake -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_WXPYTHON=ON
.
make
The system will build all accordling your choices and package all in the bundle
...
...
patches/wxpython-3.0.0_macosx_multiarch.patch
View file @
2acaa287
=== modified file 'wxPython/config.py'
--- wxPython/config.py 2014-02-0
7 20:23:1
1 +0000
+++ wxPython/config.py 2014-02-0
7 21:00:18
+0000
--- wxPython/config.py 2014-02-0
8 12:23:3
1 +0000
+++ wxPython/config.py 2014-02-0
8 13:58:07
+0000
@@ -22,6 +22,7 @@
import sys, os, glob, fnmatch, tempfile
...
...
@@ -17,8 +17,8 @@
- cflags.append(ARCH)
- lflags.append("-arch")
- lflags.append(ARCH)
+ cflags.append(
'-arch ' + re.sub(',',' -arch '
,ARCH))
+
lflags.append('-arch ' + re.sub(',',' -arch '
,ARCH))
+ cflags.append(
"-arch " + re.sub(","," -arch "
,ARCH))
+
#lflags.append("-arch " + re.sub(","," -arch "
,ARCH))
if not os.environ.get('CC') or not os.environ.get('CXX'):
os.environ["CXX"] = getWxConfigValue('--cxx')
...
...
pcbnew/CMakeLists.txt
View file @
2acaa287
...
...
@@ -598,7 +598,7 @@ if( KICAD_SCRIPTING )
# copies all into PYTHON_DEST then all into the bundle !
add_custom_target
(
_pcbnew_py_copy ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_BINARY_DIR
}
/pcbnew/pcbnew.py
"
${
PYTHON_DEST
}
"
DEPENDS FixSwigImports
Module
Scripting
DEPENDS FixSwigImportsScripting
COMMENT
"Copying pcbnew.py into PYTHON_DEST"
)
...
...
tools/Info.plist
0 → 100644
View file @
2acaa287
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