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
1c5a997f
Commit
1c5a997f
authored
Feb 14, 2014
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Reorg and preparation to include scripts into Bundles
parent
60b16714
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
CMakeLists.txt
CMakeLists.txt
+6
-6
pcbnew.cpp
pcbnew/pcbnew.cpp
+7
-3
No files found.
CMakeLists.txt
View file @
1c5a997f
...
...
@@ -347,6 +347,12 @@ check_find_package_result( OPENGL_FOUND "OpenGL" )
if
(
KICAD_BUILD_STATIC OR KICAD_BUILD_DYNAMIC
)
add_custom_target
(
lib-wxpython
)
include
(
download_pcre
)
include
(
download_swig
)
include
(
download_wxpython
)
add_dependencies
(
lib-wxpython pcre
)
add_dependencies
(
lib-wxpython swig
)
add_dependencies
(
lib-wxpython libwxpython
)
#set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so;.dylib;.dll")
...
...
@@ -394,12 +400,6 @@ add_custom_target( lib-wxpython )
set
(
wxWidgets_INCLUDE_DIRS
${
LIBWXPYTHON_ROOT
}
/include/wx-3.0
)
set
(
wxWidgets_LIBRARY_DIRS
${
LIBWXPYTHON_ROOT
}
/lib
)
include
(
download_pcre
)
include
(
download_swig
)
include
(
download_wxpython
)
add_dependencies
(
lib-wxpython pcre
)
add_dependencies
(
lib-wxpython swig
)
add_dependencies
(
lib-wxpython libwxpython
)
add_dependencies
(
lib-dependencies libwxpython
)
else
()
include
(
download_wxwidgets
)
...
...
pcbnew/pcbnew.cpp
View file @
1c5a997f
...
...
@@ -169,9 +169,13 @@ bool EDA_APP::OnInit()
bundledir
.
RemoveLastDir
();
// Prepend in PYTHONPATH the content of the bundle libraries !
wxSetEnv
(
"PYTHONPATH"
,((
wxGetenv
(
"PYTHONPATH"
)
!=
NULL
)
?
(
wxString
(
wxGetenv
(
"PYTHONPATH"
))
+
":"
)
:
wxString
(
""
))
+
bundledir
.
GetPath
()
+
"/Frameworks/wxPython/lib/python2.6/site-packages/wx-3.0-osx_cocoa"
);
wxSetEnv
(
"PYTHONPATH"
,((
wxGetenv
(
"PYTHONPATH"
)
!=
NULL
)
?
(
wxString
(
wxGetenv
(
"PYTHONPATH"
))
+
":"
)
:
wxString
(
""
))
+
"/Library/Application Support/kicad/scripting"
+
":"
+
bundledir
.
GetPath
()
+
"/PlugIns"
+
":"
+
wxString
(
wxGetenv
(
"HOME"
)
)
+
"/Library/Application Support/kicad/scripting"
+
bundledir
.
GetPath
()
+
"/Frameworks/wxPython/lib/python2.6/site-packages/wx-3.0-osx_cocoa"
);
#endif
#endif
// On linux and osx, 2 others paths are
...
...
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