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
edc57834
Commit
edc57834
authored
Jan 09, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file maintenance, update some scripts
parent
d3f0151a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
125 additions
and
64 deletions
+125
-64
mk_icn_res.sh
bitmaps_png/mk_icn_res.sh
+56
-0
toolchain-mingw32.cmake
new/toolchain-mingw32.cmake
+34
-0
toolchain-mingw64.cmake
new/toolchain-mingw64.cmake
+35
-0
make-UTF8.sh
tools/make-UTF8.sh
+0
-7
update-boost.sh
tools/update-boost.sh
+0
-57
No files found.
bitmaps_png/mk_icn_res.sh
0 → 100755
View file @
edc57834
#!/bin/bash
#
# make icons using Inkscape
# create output directories
cd
../resources/linux/mime/icons/hicolor
rm
-r
*
mkdir
scalable
echo
-e
'\E[0;34m'
"Directory
\"
scalable
\"
for .svg icons was created."
# copy sources to the scalable dir
cd
../../../../../bitmaps_png/sources
cp
icon_kicad.svg ../../resources/linux/mime/icons/hicolor/scalable/kicad.svg
cp
icon_pcbnew.svg ../../resources/linux/mime/icons/hicolor/scalable/pcbnew.svg
cp
icon_eeschema.svg ../../resources/linux/mime/icons/hicolor/scalable/eeschema.svg
echo
-e
'\E[0;34m'
"Sources of icons was copied."
# convert .svg files into .png files
cd
../../resources/linux/mime/icons/hicolor/scalable
SIZES
=
"16x16
22x22
24x24
32x32
48x48"
for
size
in
$SIZES
do
sz
=
${
size
%x*
}
echo
-e
'\E[0;32m'
"
\n
Making the mimetypes icons with size
$size
."
mkdir
../
$size
echo
-e
'\E[0;34m'
"Directory
$size
was created."
mkdir
../
$size
/mimetypes
echo
-e
'\E[0;34m'
"Subdirectory
\"
mimetypes
\"
was created."
tput sgr0
inkscape
-f
kicad.svg
-e
../
$size
/mimetypes/application-x-kicad-project.png
-w
$sz
-h
$sz
--export-area-snap
inkscape
-f
eeschema.svg
-e
../
$size
/mimetypes/application-x-kicad-eeschema.png
-w
$sz
-h
$sz
--export-area-snap
inkscape
-f
pcbnew.svg
-e
../
$size
/mimetypes/application-x-kicad-pcbnew.png
-w
$sz
-h
$sz
--export-area-snap
echo
-e
'\E[0;34m'
"Icons with size
$size
was created."
if
[
$sz
-eq
48
]
then
echo
-e
'\E[0;32m'
"
\n
Making the applications icons with size
$size
."
mkdir
../
$size
/apps
echo
-e
'\E[0;34m'
"Subdirectory
\"
apps
\"
was created."
tput sgr0
inkscape
-f
kicad.svg
-e
../
$size
/apps/kicad.png
-w
$sz
-h
$sz
--export-area-snap
inkscape
-f
eeschema.svg
-e
../
$size
/apps/eeschema.png
-w
$sz
-h
$sz
--export-area-snap
inkscape
-f
pcbnew.svg
-e
../
$size
/apps/pcbnew.png
-w
$sz
-h
$sz
--export-area-snap
echo
-e
'\E[0;34m'
"Icons with size
$size
was created."
tput sgr0
fi
done
new/toolchain-mingw32.cmake
0 → 100644
View file @
edc57834
# This is a CMake toolchain file so we can using Mingw to build Windows32 binaries.
# http://vtk.org/Wiki/CMake_Cross_Compiling
# usage
# cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain-mingw32.cmake ../
set
(
CMAKE_SYSTEM_NAME Windows
)
set
(
CMAKE_SYSTEM_PROCESSOR i686
)
#-----<configuration>-----------------------------------------------
# configure only the lines within this <configure> block, typically
set
(
TC_PATH /usr/bin
)
set
(
CROSS_COMPILE i686-w64-mingw32-
)
# specify the cross compiler
set
(
CMAKE_C_COMPILER
${
TC_PATH
}
/
${
CROSS_COMPILE
}
gcc
)
set
(
CMAKE_CXX_COMPILER
${
TC_PATH
}
/
${
CROSS_COMPILE
}
g++
)
set
(
CMAKE_RC_COMPILER
${
TC_PATH
}
/
${
CROSS_COMPILE
}
windres
)
# where is the target environment
set
(
CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32
)
#-----</configuration>-----------------------------------------------
# search for programs in the build host directories
set
(
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER
)
# for libraries and headers in the target directories
set
(
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY
)
new/toolchain-mingw.cmake
→
new/toolchain-mingw
64
.cmake
View file @
edc57834
# This is a CMake toolchain file
for ARM:
# This is a CMake toolchain file
so we can run Mingw64 to build a Windows64 binaries.
# http://vtk.org/Wiki/CMake_Cross_Compiling
# usage
# cmake -DCMAKE_TOOLCHAIN_FILE=.
./../toolchain-mingw.cmake ..
# cmake -DCMAKE_TOOLCHAIN_FILE=.
/toolchain-mingw64.cmake ../
# It is here to assist Dick with verifying compilation of /new stuff with mingw (under linux)
set
(
CMAKE_SYSTEM_NAME Windows
)
set
(
CMAKE_SYSTEM_PROCESSOR x86_64
)
#-----<configuration>-----------------------------------------------
# configure only the lines within this <configure> block, typically
# default is specific to Dick's machine, again for testing only:
set
(
WX_MINGW_BASE /opt/wx2.9-mingw
)
set
(
TC_PATH /usr/bin
)
set
(
CROSS_COMPILE x86_64-w64-mingw32-
)
# specify the cross compiler
set
(
CMAKE_C_COMPILER i586-mingw32msvc-gcc
)
set
(
CMAKE_CXX_COMPILER i586-mingw32msvc-g++
)
set
(
CMAKE_C_COMPILER
${
TC_PATH
}
/
${
CROSS_COMPILE
}
gcc
)
set
(
CMAKE_CXX_COMPILER
${
TC_PATH
}
/
${
CROSS_COMPILE
}
g++
)
set
(
CMAKE_RC_COMPILER
${
TC_PATH
}
/
${
CROSS_COMPILE
}
windres
)
# where is the target environment
set
(
CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc
)
include_directories
(
${
WX_MINGW_BASE
}
/include
)
set
(
CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32
)
#-----</configuration>-----------------------------------------------
...
...
@@ -36,5 +33,3 @@ set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
set
(
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY
)
# try and pre-load this variable, or do it later in ccmake
set
(
wxWidgets_CONFIG_EXECUTABLE
${
WX_MINGW_BASE
}
/bin/wx-config
)
tools/make-UTF8.sh
deleted
100755 → 0
View file @
d3f0151a
WXCONFIG
=
wx-config
#WXCONFIG=/opt/wx2.9/bin/wx-config
g++
-g
$(
$WXCONFIG
--cppflags
)
UTF8.cpp
-o
test
$(
$WXCONFIG
--libs
)
tools/update-boost.sh
deleted
100755 → 0
View file @
d3f0151a
#!/bin/sh
# A shell script to update the boost subset within KiCad to newer version.
BOOST_VERSION
=
1_49_0
SRC_BOOST
=
"/tmp/boost_
$BOOST_VERSION
/boost"
KICAD_BASE
=
"/svn/kicad/testing.checkout"
DST_BOOST
=
"
$KICAD_BASE
/include/boost"
# control the subset of boost libs used:
BOOST_DIRS
=
"
\
archive
\
bind
\
concept
\
config
\
detail
\
exception
\
functional
\
heap
\
integer
\
iterator
\
move
\
mpl
\
multi_index
\
optional
\
polygon
\
preprocessor
\
property_tree
\
ptr_container
\
range
\
regex
\
serialization
\
smart_ptr
\
tuple
\
typeof
\
type_traits
\
unordered
\
utility
\
"
# remove all old BOOST include files using bzr
eval
bzr
rm
--no-backup
--quiet
"
$DST_BOOST
/*"
# copy all *.hpp files in the base boost directory:
eval cp
"
$SRC_BOOST
/*.hpp"
"
$DST_BOOST
/"
# copy recursively all chosen boost libraries:
for
D
in
$BOOST_DIRS
;
do
eval cp
-r
"
$SRC_BOOST
/
$D
"
"
$DST_BOOST
/"
done
# tell bzr about the new files so they become part of the repo.
eval
bzr add
"
$DST_BOOST
/*"
eval echo
"boost version:
$BOOST_VERSION
"
>
"
$DST_BOOST
/boost_version.txt"
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