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
d2994d58
Commit
d2994d58
authored
May 16, 2010
by
Jerry Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates for OS X
parent
6f3c4442
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
133 additions
and
70 deletions
+133
-70
CMakeLists.txt
cvpcb/CMakeLists.txt
+32
-19
Info.plist
cvpcb/Info.plist
+1
-0
eeschema_doc.icns
eeschema/eeschema_doc.icns
+0
-0
file_sch.icns
eeschema/file_sch.icns
+0
-0
CMakeLists.txt
gerbview/CMakeLists.txt
+38
-16
CMakeLists.txt
kicad/CMakeLists.txt
+10
-12
Info.plist
kicad/Info.plist
+5
-1
Makefile
packaging/mac-osx/dmg-generator/Makefile
+7
-4
dmg_kicad.scpt
packaging/mac-osx/dmg-generator/dmg_kicad.scpt
+0
-0
CMakeLists.txt
pcbnew/CMakeLists.txt
+40
-18
No files found.
cvpcb/CMakeLists.txt
View file @
d2994d58
add_definitions
(
-DCVPCB
)
add_definitions
(
-DCVPCB
)
###
# Includes
###
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
${
Boost_INCLUDE_DIR
}
${
Boost_INCLUDE_DIR
}
../3d-viewer
../3d-viewer
../pcbnew
../pcbnew
../polygon
../polygon
${
CMAKE_SOURCE_DIR
}
/common
)
${
CMAKE_SOURCE_DIR
}
/common
)
##
# Name of target on OSX is also the title of the application
# on other targets this should be as normal
##
if
(
APPLE
)
set
(
CVPCB_NAME CvPCB
)
else
(
APPLE
)
set
(
CVPCB_NAME cvpcb
)
endif
(
APPLE
)
###
# Sources
###
set
(
CVPCB_SRCS
set
(
CVPCB_SRCS
autosel.cpp
autosel.cpp
cfg.cpp
cfg.cpp
...
@@ -42,6 +39,9 @@ set(CVPCB_SRCS
...
@@ -42,6 +39,9 @@ set(CVPCB_SRCS
tool_cvpcb.cpp
tool_cvpcb.cpp
writenetlistpcbnew.cpp
)
writenetlistpcbnew.cpp
)
###
# Windows resource file
###
if
(
WIN32
)
if
(
WIN32
)
if
(
MINGW
)
if
(
MINGW
)
# CVPCB_RESOURCES variable is set by the macro.
# CVPCB_RESOURCES variable is set by the macro.
...
@@ -52,7 +52,7 @@ if(WIN32)
...
@@ -52,7 +52,7 @@ if(WIN32)
endif
(
WIN32
)
endif
(
WIN32
)
###
###
#
CvPCB.app resourc
es
#
Apple resource fil
es
###
###
if
(
APPLE
)
if
(
APPLE
)
set
(
CVPCB_RESOURCES cvpcb.icns cvpcb_doc.icns
)
set
(
CVPCB_RESOURCES cvpcb.icns cvpcb_doc.icns
)
...
@@ -64,18 +64,31 @@ if(APPLE)
...
@@ -64,18 +64,31 @@ if(APPLE)
set
(
MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.cvpcb
)
set
(
MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.cvpcb
)
endif
(
APPLE
)
endif
(
APPLE
)
add_executable
(
${
CVPCB_NAME
}
WIN32 MACOSX_BUNDLE
${
CVPCB_SRCS
}
${
CVPCB_RESOURCES
}
)
###
# Create the cvpcb executable
###
add_executable
(
cvpcb WIN32 MACOSX_BUNDLE
${
CVPCB_SRCS
}
${
CVPCB_RESOURCES
}
)
###
###
#
CvPCB.app creation
#
Set properties for APPLE on cvpcb target
###
###
if
(
APPLE
)
if
(
APPLE
)
set_target_properties
(
${
CVPCB_NAME
}
PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
set_target_properties
(
cvpcb
PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
(
APPLE
)
endif
(
APPLE
)
target_link_libraries
(
${
CVPCB_NAME
}
3d-viewer common pcbcommon polygon bitmaps kbool
###
${
OPENGL_LIBRARIES
}
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
# Link executable target cvpcb with correct libraries
###
install
(
TARGETS
${
CVPCB_NAME
}
target_link_libraries
(
cvpcb 3d-viewer common pcbcommon polygon bitmaps kbool
${
OPENGL_LIBRARIES
}
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
###
# Add cvpcb as install target
###
install
(
TARGETS cvpcb
DESTINATION
${
KICAD_BIN
}
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
COMPONENT binary
)
cvpcb/Info.plist
View file @
d2994d58
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
net
<
/string
>
<
string
>
net
<
/string
>
<
string
>
cmp
<
/string
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
cvpcb
document
<
/string
>
<
string
>
cvpcb
document
<
/string
>
...
...
eeschema/eeschema_doc.icns
0 → 100644
View file @
d2994d58
File added
eeschema/file_sch.icns
deleted
100644 → 0
View file @
6f3c4442
File deleted
gerbview/CMakeLists.txt
View file @
d2994d58
add_definitions
(
-DGERBVIEW -DPCBNEW
)
add_definitions
(
-DGERBVIEW -DPCBNEW
)
###
# Includes
###
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
${
Boost_INCLUDE_DIR
}
${
Boost_INCLUDE_DIR
}
../3d-viewer
../3d-viewer
../cvpcb
../cvpcb
../pcbnew
../pcbnew
../polygon
)
../polygon
)
##
###
# Name of target on OSX is also the title of the application
# Sources
# on other targets this should be as normal
###
##
if
(
APPLE
)
set
(
GERBVIEW_NAME GerbView
)
else
(
APPLE
)
set
(
GERBVIEW_NAME gerbview
)
endif
(
APPLE
)
set
(
GERBVIEW_SRCS
set
(
GERBVIEW_SRCS
block.cpp
block.cpp
class_gerbview_layer_widget.cpp
class_gerbview_layer_widget.cpp
...
@@ -48,11 +44,17 @@ set(GERBVIEW_SRCS
...
@@ -48,11 +44,17 @@ set(GERBVIEW_SRCS
tool_gerber.cpp
tool_gerber.cpp
tracepcb.cpp
)
tracepcb.cpp
)
###
# We need some extra sources from pcbnew
###
set
(
GERBVIEW_EXTRA_SRCS
set
(
GERBVIEW_EXTRA_SRCS
../pcbnew/layer_widget.cpp
../pcbnew/layer_widget.cpp
../pcbnew/printout_controler.cpp
../pcbnew/printout_controler.cpp
)
)
###
# Windows resource file
###
if
(
WIN32
)
if
(
WIN32
)
if
(
MINGW
)
if
(
MINGW
)
# GERBVIEW_RESOURCES variable is set by the macro.
# GERBVIEW_RESOURCES variable is set by the macro.
...
@@ -62,6 +64,9 @@ if(WIN32)
...
@@ -62,6 +64,9 @@ if(WIN32)
endif
(
MINGW
)
endif
(
MINGW
)
endif
(
WIN32
)
endif
(
WIN32
)
###
# Apple resource files
###
if
(
APPLE
)
if
(
APPLE
)
set
(
GERBVIEW_RESOURCES gerbview.icns gerbview_doc.icns
)
set
(
GERBVIEW_RESOURCES gerbview.icns gerbview_doc.icns
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gerbview.icns"
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gerbview.icns"
...
@@ -72,15 +77,32 @@ if(APPLE)
...
@@ -72,15 +77,32 @@ if(APPLE)
set
(
MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.gerbview
)
set
(
MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.gerbview
)
endif
(
APPLE
)
endif
(
APPLE
)
add_executable
(
${
GERBVIEW_NAME
}
WIN32 MACOSX_BUNDLE
${
GERBVIEW_SRCS
}
${
GERBVIEW_EXTRA_SRCS
}
${
GERBVIEW_RESOURCES
}
)
###
# Create the gerbview executable
###
add_executable
(
gerbview WIN32 MACOSX_BUNDLE
${
GERBVIEW_SRCS
}
${
GERBVIEW_EXTRA_SRCS
}
${
GERBVIEW_RESOURCES
}
)
###
# Set properties for APPLE on gerbview target
###
if
(
APPLE
)
if
(
APPLE
)
set_target_properties
(
${
GERBVIEW_NAME
}
PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
set_target_properties
(
gerbview
PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
(
APPLE
)
endif
(
APPLE
)
target_link_libraries
(
${
GERBVIEW_NAME
}
common pcbcommon 3d-viewer polygon bitmaps kbool
###
${
OPENGL_LIBRARIES
}
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
# Link executable target gerbview with correct libraries
###
target_link_libraries
(
gerbview common pcbcommon 3d-viewer polygon bitmaps kbool
${
OPENGL_LIBRARIES
}
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
install
(
TARGETS
${
GERBVIEW_NAME
}
###
# Add gerbview as install target
###
install
(
TARGETS gerbview
DESTINATION
${
KICAD_BIN
}
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
COMPONENT binary
)
kicad/CMakeLists.txt
View file @
d2994d58
...
@@ -36,24 +36,22 @@ if(APPLE)
...
@@ -36,24 +36,22 @@ if(APPLE)
set
(
MACOSX_BUNDLE_NAME kicad
)
set
(
MACOSX_BUNDLE_NAME kicad
)
endif
(
APPLE
)
endif
(
APPLE
)
if
(
APPLE
)
add_executable
(
kicad WIN32 MACOSX_BUNDLE
add_executable
(
KiCad MACOSX_BUNDLE
${
KICAD_SRCS
}
${
KICAD_EXTRA_SRCS
}
${
KICAD_RESOURCES
}
)
${
KICAD_SRCS
}
else
(
APPLE
)
${
KICAD_EXTRA_SRCS
}
add_executable
(
kicad WIN32
${
KICAD_SRCS
}
${
KICAD_EXTRA_SRCS
}
${
KICAD_RESOURCES
}
)
${
KICAD_RESOURCES
}
endif
(
APPLE
)
)
if
(
APPLE
)
if
(
APPLE
)
set_target_properties
(
KiCad PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
set_target_properties
(
kicad PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
target_link_libraries
(
KiCad common bitmaps
${
wxWidgets_LIBRARIES
}
)
target_link_libraries
(
kicad common bitmaps
${
wxWidgets_LIBRARIES
}
)
install
(
TARGETS KiCad
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
else
(
APPLE
)
else
(
APPLE
)
target_link_libraries
(
kicad common bitmaps kbool polygon
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
target_link_libraries
(
kicad common bitmaps kbool polygon
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
install
(
TARGETS kicad
endif
(
APPLE
)
install
(
TARGETS kicad
DESTINATION
${
KICAD_BIN
}
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
COMPONENT binary
)
endif
(
APPLE
)
if
(
KICAD_MINIZIP
)
if
(
KICAD_MINIZIP
)
add_subdirectory
(
minizip
)
add_subdirectory
(
minizip
)
...
...
kicad/Info.plist
View file @
d2994d58
...
@@ -7,6 +7,10 @@
...
@@ -7,6 +7,10 @@
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
kicad_doc.icns
<
/string
>
<
string
>
kicad_doc.icns
<
/string
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
pro
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
kicad
project
files
<
/string
>
<
string
>
kicad
project
files
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
...
...
packaging/mac-osx/dmg-generator/Makefile
View file @
d2994d58
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
# Original credits by Adium developers !
# Original credits by Adium developers !
# http://www.adium.im
# http://www.adium.im
###########
###########
VERSION
=
20100118
VERSION
=
`
date
+%Y%m%d
`
###########
###########
# Variables
# Variables
...
@@ -21,7 +21,10 @@ RELEASE_NAME=kicad-$(VERSION)
...
@@ -21,7 +21,10 @@ RELEASE_NAME=kicad-$(VERSION)
# Targets
# Targets
###########
###########
all
:
all
:
echo
"Copying application bundles"
mkdir
release
cp
-R
../../../
*
/
*
.app release
echo
"Building kicad-
${
VERSION
}
.dmg"
rm
-rfv
build
rm
-rfv
build
mkdir
build
mkdir
build
...
@@ -32,6 +35,6 @@ all:
...
@@ -32,6 +35,6 @@ all:
mkdir
-p
$(BUILD_DIR)/.background
mkdir
-p
$(BUILD_DIR)/.background
./make-diskimage.sh
$(BUILD_DIR)/$(RELEASE_NAME).dmg
$(KICAD_DIR)
"KiCad
$(VERSION)
"
dmg_kicad.scpt
$(ART_DIR)
./make-diskimage.sh
$(BUILD_DIR)/$(RELEASE_NAME).dmg
$(KICAD_DIR)
"KiCad"
dmg_kicad.scpt
$(ART_DIR)
@echo
Build
finished.
`md5
$(BUILD_DIR)/$(RELEASE_NAME).dmg`
@echo
"Build finished. `md5 $(BUILD_DIR)/$(RELEASE_NAME).dmg`"
packaging/mac-osx/dmg-generator/dmg_kicad.scpt
View file @
d2994d58
No preview for this file type
pcbnew/CMakeLists.txt
View file @
d2994d58
add_definitions
(
-DPCBNEW
)
add_definitions
(
-DPCBNEW
)
###
# Includes
###
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
${
Boost_INCLUDE_DIR
}
${
Boost_INCLUDE_DIR
}
../3d-viewer
../3d-viewer
../polygon
)
../polygon
)
##
# Name of target on OSX is also the title of the application
# on other targets this should be as normal
##
if
(
APPLE
)
set
(
PCBNEW_NAME PCBNew
)
else
(
APPLE
)
set
(
PCBNEW_NAME pcbnew
)
endif
(
APPLE
)
# Many of the commented out ones are nested in *.cpp files for dialogs
###
# Sources
#
# NOTE: Many of the commented out ones are nested in *.cpp files for dialogs
###
set
(
PCBNEW_SRCS
set
(
PCBNEW_SRCS
pcbframe.cpp
pcbframe.cpp
attribut.cpp
attribut.cpp
...
@@ -176,10 +174,16 @@ set(PCBNEW_SRCS
...
@@ -176,10 +174,16 @@ set(PCBNEW_SRCS
zones_test_and_combine_areas.cpp
zones_test_and_combine_areas.cpp
)
)
###
# We need some extra sources from common
###
set
(
PCBNEW_EXTRA_SRCS
set
(
PCBNEW_EXTRA_SRCS
../common/dialog_page_settings.cpp
../common/dialog_page_settings.cpp
)
)
###
# Windows resource file
###
if
(
WIN32
)
if
(
WIN32
)
if
(
MINGW
)
if
(
MINGW
)
# PCBNEW_RESOURCES variable is set by the macro.
# PCBNEW_RESOURCES variable is set by the macro.
...
@@ -189,6 +193,9 @@ if(WIN32)
...
@@ -189,6 +193,9 @@ if(WIN32)
endif
(
MINGW
)
endif
(
MINGW
)
endif
(
WIN32
)
endif
(
WIN32
)
###
# Set properties for APPLE on pcbnew target
###
if
(
APPLE
)
if
(
APPLE
)
set
(
PCBNEW_RESOURCES pcbnew.icns pcbnew_doc.icns
)
set
(
PCBNEW_RESOURCES pcbnew.icns pcbnew_doc.icns
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/pcbnew.icns"
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/pcbnew.icns"
...
@@ -217,19 +224,34 @@ set_source_files_properties( dialog_freeroute_exchange.cpp
...
@@ -217,19 +224,34 @@ set_source_files_properties( dialog_freeroute_exchange.cpp
OBJECT_DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/dialog_freeroute_exchange_help_html.h
OBJECT_DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/dialog_freeroute_exchange_help_html.h
)
)
add_executable
(
${
PCBNEW_NAME
}
WIN32 MACOSX_BUNDLE
${
PCBNEW_SRCS
}
###
# Create the pcbnew executable
###
add_executable
(
pcbnew WIN32 MACOSX_BUNDLE
${
PCBNEW_SRCS
}
${
PCBNEW_EXTRA_SRCS
}
${
PCBNEW_EXTRA_SRCS
}
${
PCBNEW_RESOURCES
}
${
PCBNEW_RESOURCES
}
)
)
###
# Set properties for APPLE on pcbnew target
###
if
(
APPLE
)
if
(
APPLE
)
set_target_properties
(
${
PCBNEW_NAME
}
PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
set_target_properties
(
pcbnew
PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
(
APPLE
)
endif
(
APPLE
)
target_link_libraries
(
${
PCBNEW_NAME
}
3d-viewer common pcbcommon polygon bitmaps kbool
###
${
OPENGL_LIBRARIES
}
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
# Link executable target pcbnew with correct libraries
###
target_link_libraries
(
pcbnew 3d-viewer common pcbcommon polygon bitmaps kbool
${
OPENGL_LIBRARIES
}
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
install
(
TARGETS
${
PCBNEW_NAME
}
###
# Add pcbnew as install target
###
install
(
TARGETS pcbnew
DESTINATION
${
KICAD_BIN
}
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
COMPONENT binary
)
...
...
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