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
c8558243
Commit
c8558243
authored
May 09, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try some new Mac support ideas.
parent
0166c95e
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
274 additions
and
373 deletions
+274
-373
CMakeLists.txt
cvpcb/CMakeLists.txt
+15
-24
CMakeLists.txt
eeschema/CMakeLists.txt
+11
-13
Info.plist
eeschema/Info.plist
+31
-49
CMakeLists.txt
gerbview/CMakeLists.txt
+12
-17
Info.plist
gerbview/Info.plist
+49
-67
CMakeLists.txt
kicad/CMakeLists.txt
+16
-0
Info.plist
kicad/Info.plist
+31
-49
CMakeLists.txt
pagelayout_editor/CMakeLists.txt
+23
-33
Info.plist
pagelayout_editor/Info.plist
+31
-49
CMakeLists.txt
pcb_calculator/CMakeLists.txt
+15
-14
CMakeLists.txt
pcbnew/CMakeLists.txt
+9
-10
Info.plist
pcbnew/Info.plist
+31
-48
No files found.
cvpcb/CMakeLists.txt
View file @
c8558243
...
...
@@ -100,7 +100,6 @@ if( USE_KIWAY_DLLS )
cvpcb.cpp
${
CVPCB_SRCS
}
${
CVPCB_DIALOGS
}
# ${CVPCB_RESOURCES}
)
set_target_properties
(
cvpcb_kiface PROPERTIES
OUTPUT_NAME cvpcb
...
...
@@ -148,12 +147,6 @@ if( USE_KIWAY_DLLS )
target_link_libraries
(
cvpcb_kiface rt
)
endif
()
if
(
APPLE
)
set_target_properties
(
cvpcb PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
set_source_files_properties
(
cvpcb.cpp PROPERTIES
# The KIFACE is in cvpcb.cpp, export it:
COMPILE_DEFINITIONS
"BUILD_KIWAY_DLL;COMPILING_DLL"
...
...
@@ -172,18 +165,16 @@ if( USE_KIWAY_DLLS )
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
install
(
TARGETS cvpcb_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
if
(
APPLE
)
# copies kiface into the bundle
add_custom_target
(
_cvpcb_kiface_copy ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_BINARY_DIR
}
/cvpcb/_cvpcb.kiface
"
${
CMAKE_BINARY_DIR
}
/cvpcb/cvpcb.app/Contents/MacOS/"
DEPENDS cvpcb_kiface
COMMENT
"Copying kiface into cvpcb"
)
# puts the *.kiface into the *.app bundle while linking
set_target_properties
(
cvpcb_kiface PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/cvpcb.app/Contents/MacOS/
)
else
()
install
(
TARGETS cvpcb_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
else
()
...
...
@@ -228,15 +219,15 @@ else()
# Must follow github_plugin
target_link_libraries
(
cvpcb
${
Boost_LIBRARIES
}
)
if
(
APPLE
)
set_target_properties
(
cvpcb PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
install
(
TARGETS cvpcb
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
if
(
APPLE
)
set_target_properties
(
cvpcb PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
eeschema/CMakeLists.txt
View file @
c8558243
...
...
@@ -311,20 +311,18 @@ if( USE_KIWAY_DLLS )
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
install
(
TARGETS eeschema_kiface
# actual filename subject to change at milestone C)
# modular-kicad blueprint.
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
if
(
APPLE
)
# copies kiface into the bundle
add_custom_target
(
_eeschema_kiface_copy ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_BINARY_DIR
}
/eeschema/_eeschema.kiface
"
${
CMAKE_BINARY_DIR
}
/eeschema/eeschema.app/Contents/MacOS/"
DEPENDS eeschema_kiface
COMMENT
"Copying kiface into eeschema"
)
# puts the *.kiface into the *.app bundle while linking
set_target_properties
(
eeschema_kiface PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/eeschema.app/Contents/MacOS/
)
else
()
install
(
TARGETS eeschema_kiface
# actual filename subject to change at milestone C)
# modular-kicad blueprint.
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
else
()
...
...
eeschema/Info.plist
View file @
c8558243
...
...
@@ -2,54 +2,36 @@
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
sch
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
eeschema.icns
<
/string
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
eeschema
document
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
eeschema
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
eeschema.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.eeschema
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
EESchema
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
sch
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
eeschema.icns
<
/string
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
eeschema
document
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
eeschema
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
eeschema.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.eeschema
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
EESchema
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
gerbview/CMakeLists.txt
View file @
c8558243
...
...
@@ -81,11 +81,11 @@ endif()
if
(
APPLE
)
set
(
GERBVIEW_RESOURCES gerbview.icns gerbview_doc.icns
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gerbview.icns"
PROPERTIES
set
(
GERBVIEW_RESOURCES gerbview.icns gerbview_doc.icns
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gerbview.icns"
PROPERTIES
MACOSX_PACKAGE_LOCATION Resources
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gerbview_doc.icns"
PROPERTIES
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/gerbview_doc.icns"
PROPERTIES
MACOSX_PACKAGE_LOCATION Resources
)
set
(
MACOSX_BUNDLE_ICON_FILE gerbview.icns
)
...
...
@@ -120,7 +120,6 @@ if( USE_KIWAY_DLLS )
${
GERBVIEW_SRCS
}
${
DIALOGS_SRCS
}
${
GERBVIEW_EXTRA_SRCS
}
# ${GERBVIEW_RESOURCES}
)
set_target_properties
(
gerbview_kiface PROPERTIES
OUTPUT_NAME gerbview
...
...
@@ -152,18 +151,16 @@ if( USE_KIWAY_DLLS )
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
install
(
TARGETS gerbview_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
if
(
APPLE
)
# copies kiface into the bundle
add_custom_target
(
_gerbview_kiface_copy ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_BINARY_DIR
}
/gerbview/_gerbview.kiface
"
${
CMAKE_BINARY_DIR
}
/gerbview/gerbview.app/Contents/MacOS/"
DEPENDS gerbview_kiface
COMMENT
"Copying kiface into gerbview"
)
# puts the *.kiface into the *.app bundle while linking
set_target_properties
(
gerbview_kiface PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/gerbview.app/Contents/MacOS/
)
else
()
install
(
TARGETS gerbview_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
else
()
...
...
@@ -194,5 +191,3 @@ if( APPLE )
set_target_properties
(
gerbview PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
gerbview/Info.plist
View file @
c8558243
...
...
@@ -2,72 +2,54 @@
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
pen
<
/string
>
<
string
>
gba
<
/string
>
<
string
>
gbr
<
/string
>
<
string
>
gbx
<
/string
>
<
string
>
gbo
<
/string
>
<
string
>
gbl
<
/string
>
<
string
>
gtl
<
/string
>
<
string
>
gto
<
/string
>
<
string
>
gta
<
/string
>
<
string
>
gbp
<
/string
>
<
string
>
gbp
<
/string
>
<
string
>
gbs
<
/string
>
<
string
>
gts
<
/string
>
<
string
>
gtp
<
/string
>
<
string
>
gbx
<
/string
>
<
string
>
lgr
<
/string
>
<
string
>
ger
<
/string
>
<
string
>
pho
<
/string
>
<
string
>
drl
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
gerbview_doc.icns
<
/string
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
gerbview
document
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Default
<
/string
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Viewer
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
gerbview
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
gerbview.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.gerbview
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
GerbView
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
pen
<
/string
>
<
string
>
gba
<
/string
>
<
string
>
gbr
<
/string
>
<
string
>
gbx
<
/string
>
<
string
>
gbo
<
/string
>
<
string
>
gbl
<
/string
>
<
string
>
gtl
<
/string
>
<
string
>
gto
<
/string
>
<
string
>
gta
<
/string
>
<
string
>
gbp
<
/string
>
<
string
>
gbp
<
/string
>
<
string
>
gbs
<
/string
>
<
string
>
gts
<
/string
>
<
string
>
gtp
<
/string
>
<
string
>
gbx
<
/string
>
<
string
>
lgr
<
/string
>
<
string
>
ger
<
/string
>
<
string
>
pho
<
/string
>
<
string
>
drl
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
gerbview_doc.icns
<
/string
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
gerbview
document
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Default
<
/string
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Viewer
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
gerbview
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
gerbview.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.gerbview
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
GerbView
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
kicad/CMakeLists.txt
View file @
c8558243
...
...
@@ -57,6 +57,22 @@ if( UNIX )
endif
()
if
(
APPLE
)
# In this CMakeLists.txt's build directory, create kiface symlinks should get
# "installed()" as part of the kicad.app bundle. These are pointers on the
# target which point up and over to the stand alone kicad app's *.kiface files.
foreach
(
symlink pcbnew eeschema cvpcb
)
add_custom_command
(
TARGET kicad
COMMAND
${
CMAKE_COMMAND
}
-E remove
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kicad.app/Contents/MacOS/_
${
symlink
}
.kiface"
COMMAND
${
CMAKE_COMMAND
}
-E create_symlink
"../../../
${
symlink
}
.app/Contents/MacOS/_
${
symlink
}
.kiface"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kicad.app/Contents/MacOS/_
${
symlink
}
.kiface"
COMMENT
"kicad.app
${
symlink
}
symlink"
)
endforeach
()
endif
()
if
(
APPLE
)
set_target_properties
(
kicad PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
...
...
kicad/Info.plist
View file @
c8558243
...
...
@@ -2,54 +2,36 @@
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
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
>
<
string
>
kicad
project
files
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
kicad
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
kicad.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.kicad
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
KiCad
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
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
>
<
string
>
kicad
project
files
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
kicad
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
kicad.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.kicad
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
KiCad
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
pagelayout_editor/CMakeLists.txt
View file @
c8558243
...
...
@@ -49,7 +49,20 @@ set( PL_EDITOR_EXTRA_SRCS
if
(
MINGW
)
# PL_EDITOR_RESOURCES variable is set by the macro.
mingw_resource_compiler
(
pl_editor
)
mingw_resource_compiler
(
pl_editor
)
endif
()
if
(
APPLE
)
set
(
PL_EDITOR_RESOURCES pl_editor.icns pl_editor_doc.icns
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/pl_editor.icns"
PROPERTIES
MACOSX_PACKAGE_LOCATION Resources
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/pl_editor_doc.icns"
PROPERTIES
MACOSX_PACKAGE_LOCATION Resources
)
set
(
MACOSX_BUNDLE_ICON_FILE pl_editor.icns
)
set
(
MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.pl_editor
)
endif
()
...
...
@@ -82,7 +95,6 @@ if( USE_KIWAY_DLLS )
${
PL_EDITOR_SRCS
}
${
DIALOGS_SRCS
}
${
PL_EDITOR_EXTRA_SRCS
}
# ${PL_EDITOR_RESOURCES}
)
target_link_libraries
(
pl_editor_kiface
common
...
...
@@ -114,18 +126,16 @@ if( USE_KIWAY_DLLS )
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
install
(
TARGETS pl_editor_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
if
(
APPLE
)
# copies kiface into the bundle
add_custom_target
(
_pleditor_kiface_copy ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_BINARY_DIR
}
/pagelayout_editor/_pl_editor.kiface
"
${
CMAKE_BINARY_DIR
}
/pagelayout_editor/pl_editor.app/Contents/MacOS/"
DEPENDS pl_editor_kiface
COMMENT
"Copying kiface into pleditor"
)
# puts the *.kiface into the *.app bundle while linking
set_target_properties
(
pl_editor_kiface PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/pl_editor.app/Contents/MacOS/
)
else
()
install
(
TARGETS pl_editor_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
else
()
...
...
@@ -137,13 +147,6 @@ else()
${
PL_EDITOR_EXTRA_SRCS
}
${
PL_EDITOR_RESOURCES
}
)
if
(
APPLE
)
set_target_properties
(
pl_editor PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
target_link_libraries
(
pl_editor
common
polygon
...
...
@@ -152,28 +155,15 @@ else()
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
install
(
TARGETS pl_editor
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
if
(
APPLE
)
set
(
PL_EDITOR_RESOURCES pl_editor.icns pl_editor_doc.icns
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/pl_editor.icns"
PROPERTIES
MACOSX_PACKAGE_LOCATION Resources
)
set_source_files_properties
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/pl_editor_doc.icns"
PROPERTIES
MACOSX_PACKAGE_LOCATION Resources
)
set
(
MACOSX_BUNDLE_ICON_FILE pl_editor.icns
)
set
(
MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.pl_editor
)
set_target_properties
(
pl_editor PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
pagelayout_editor/Info.plist
View file @
c8558243
...
...
@@ -2,54 +2,36 @@
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
kicad_wks
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
pl_editor.icns
<
/string
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
pl_editor
document
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
pl_editor
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
pl_editor.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.pl_editor
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
pl_editor
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
kicad_wks
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
pl_editor.icns
<
/string
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
pl_editor
document
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
English
<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
pl_editor
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
pl_editor.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.pl_editor
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
pl_editor
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
pcb_calculator/CMakeLists.txt
View file @
c8558243
...
...
@@ -122,14 +122,15 @@ if( USE_KIWAY_DLLS )
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
install
(
TARGETS pcb_calculator_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
if
(
APPLE
)
set_target_properties
(
pcb_calculator PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
# puts the *.kiface into the *.app bundle while linking
set_target_properties
(
pcb_calculator_kiface PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/pcb_calculator.app/Contents/MacOS/
)
else
()
install
(
TARGETS pcb_calculator_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
...
...
@@ -156,13 +157,6 @@ else()
set_source_files_properties
(
pcb_calculator.cpp PROPERTIES
COMPILE_DEFINITIONS
"COMPILING_DLL"
)
if
(
APPLE
)
set_target_properties
(
pcb_calculator PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
target_link_libraries
(
pcb_calculator
common
bitmaps
...
...
@@ -175,3 +169,10 @@ else()
)
endif
()
if
(
APPLE
)
set_target_properties
(
pcb_calculator PROPERTIES
MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
endif
()
pcbnew/CMakeLists.txt
View file @
c8558243
...
...
@@ -589,17 +589,15 @@ if( USE_KIWAY_DLLS )
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
install
(
TARGETS pcbnew_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
if
(
APPLE
)
# copies kiface into the bundle
add_custom_target
(
_pcbnew_kiface_copy ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_BINARY_DIR
}
/pcbnew/_pcbnew.kiface
"
${
CMAKE_BINARY_DIR
}
/pcbnew/pcbnew.app/Contents/MacOS/"
DEPENDS pcbnew_kiface
COMMENT
"Copying kiface into pcbnew"
# puts the *.kiface into the *.app bundle while linking
set_target_properties
(
pcbnew_kiface PROPERTIES
LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/pcbnew.app/Contents/MacOS/
)
else
()
install
(
TARGETS pcbnew_kiface
DESTINATION
${
KICAD_BIN
}
COMPONENT binary
)
endif
()
...
...
@@ -763,3 +761,4 @@ if( false ) # haven't been used in years.
)
target_link_libraries
(
layer_widget_test common
${
wxWidgets_LIBRARIES
}
)
endif
()
pcbnew/Info.plist
View file @
c8558243
...
...
@@ -2,53 +2,36 @@
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
pcbnew_doc.icns
<
/string
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
kicad_pcb
<
/string
>
<
string
>
brd
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
pcbnew
board
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
pcbnew
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
pcbnew.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.pcbnew
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
PCBNew
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
k
e
y
>
CFBundleDocumentTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleTypeRole
<
/k
e
y
>
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleTypeIconFile
<
/k
e
y
>
<
string
>
pcbnew_doc.icns
<
/string
>
<
k
e
y
>
CFBundleTypeExtensions
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
kicad_pcb
<
/string
>
<
string
>
brd
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleTypeName
<
/k
e
y
>
<
string
>
pcbnew
board
<
/string
>
<
k
e
y
>
LSHandlerRank
<
/k
e
y
>
<
string
>
Owner
<
/string
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
pcbnew
<
/string
>
<
k
e
y
>
CFBundleGetInfoString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
>
pcbnew.icns
<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
org.kicad-eda.pcbnew
<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleLongVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
PCBNew
<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CSResourcesFileMapped
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
LSRequiresCarbon
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSHumanReadableCopyright
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
NSHighResolutionCapable
<
/k
e
y
>
<
string
>
True
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
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