mirror of https://github.com/KLayout/klayout.git
parent
6e86ac77d3
commit
102cfe5c3d
|
|
@ -1,25 +1,39 @@
|
|||
<< Draft Version 0.001>>
|
||||
<< Draft Version 0.002>>
|
||||
|
||||
This directory "macbuild" contains different files required to build KLayout
|
||||
version 0.25 or later for different Max OSX including:
|
||||
* Yosemite (10.10)
|
||||
* El Capitan (10.11)
|
||||
* Sierra (10.12)
|
||||
* High Sierra (10.13)
|
||||
1. Introduction:
|
||||
This directory "macbuild" contains different files required to build KLayout
|
||||
version 0.25 or later for different Max OSX including:
|
||||
* Yosemite (10.10)
|
||||
* El Capitan (10.11)
|
||||
* Sierra (10.12)
|
||||
* High Sierra (10.13)
|
||||
|
||||
By default, Qt framework is Qt5 from Mac Ports (https://www.macports.org/) which
|
||||
is usually located under:
|
||||
/opt/local/libexec/qt5/
|
||||
By default, Qt framework is Qt5 from Mac Ports (https://www.macports.org/) which
|
||||
is usually located under:
|
||||
/opt/local/libexec/qt5/
|
||||
|
||||
Also by default, supported script languages, i.e,, Ruby and Python, are those
|
||||
standard ones bundled with the OS.
|
||||
However, you are able to choose other options like Python from Anaconda.
|
||||
|
||||
bla bla bla ...
|
||||
Also by default, supported script languages, i.e, Ruby and Python, are those
|
||||
standard ones bundled with the OS.
|
||||
However, you are able to choose other options like Python from Anaconda.
|
||||
:
|
||||
:
|
||||
:
|
||||
:
|
||||
|
||||
|
||||
To use the top script "build4mac.py" make a symbolic link from the parent directory like:
|
||||
build4mac.py -> macbuild/build4mac.py
|
||||
then execute the Python script to build with appropriate options if required.
|
||||
2. How to use:
|
||||
(1) Make a symbolic link from the parent directory (where 'build.sh' exists) to
|
||||
'build4mac.py', that is,
|
||||
build4mac.py -> macbuild/build4mac.py
|
||||
|
||||
(2) Build KLayout by appropriate options, for example, for debug-build:
|
||||
$ cd /where/'build.sh'/exists
|
||||
$ ./build4mac.py -d
|
||||
|
||||
(3) Confirm successful build.
|
||||
|
||||
(4) Run 'build4mac.py' again with the same options used in (2) with "-y"
|
||||
to deploy executables and libraries under "klayout.app" bundle.
|
||||
$ ./build4mac.py -d -y
|
||||
|
||||
[End of File]
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ def DeployBinariesForBundle():
|
|||
|
||||
print("")
|
||||
print( "##### Start deploying libraries and executables #####" )
|
||||
print( "[1] Checking the status of working directory ..." )
|
||||
print( " [1] Checking the status of working directory ..." )
|
||||
#-------------------------------------------------------------
|
||||
# [1] Check the status of working directory
|
||||
#-------------------------------------------------------------
|
||||
|
|
@ -471,7 +471,7 @@ def DeployBinariesForBundle():
|
|||
return(1)
|
||||
|
||||
|
||||
print( "[2] Creating a new empty directory for deployment ..." )
|
||||
print( " [2] Creating a new empty directory <%s> for deployment ..." % MacPkgDir )
|
||||
#-------------------------------------------------------------
|
||||
# [2] Create a new empty directory for deploying binaries
|
||||
#-------------------------------------------------------------
|
||||
|
|
@ -483,7 +483,7 @@ def DeployBinariesForBundle():
|
|||
os.mkdir(MacPkgDir)
|
||||
|
||||
|
||||
print( "[3] Creating the standard directory structure for a bundle ..." )
|
||||
print( " [3] Creating the standard directory structure for a bundle ..." )
|
||||
#-------------------------------------------------------------
|
||||
# [3] Create the directory skeleton for "klayout.app" bundle
|
||||
# and command line buddy tools such as "strm2cif".
|
||||
|
|
@ -514,7 +514,7 @@ def DeployBinariesForBundle():
|
|||
os.makedirs(targetDirB)
|
||||
|
||||
|
||||
print( "[4] Copying KLayout's dynamic link libraries to 'Frameworks' ..." )
|
||||
print( " [4] Copying KLayout's dynamic link libraries to 'Frameworks' ..." )
|
||||
#-------------------------------------------------------------------------------
|
||||
# [4] Copy KLayout's dynamic link libraries to "Frameworks/" and create
|
||||
# the library dependency dictionary.
|
||||
|
|
@ -572,7 +572,7 @@ def DeployBinariesForBundle():
|
|||
quit()
|
||||
'''
|
||||
|
||||
print( "[5] Setting and changing the identification names among KLayout's libraries ..." )
|
||||
print( " [5] Setting and changing the identification names among KLayout's libraries ..." )
|
||||
#-------------------------------------------------------------
|
||||
# [5] Set the identification names for KLayout's libraries
|
||||
# and make the library aware of the locations of libraries
|
||||
|
|
@ -585,7 +585,7 @@ def DeployBinariesForBundle():
|
|||
return(1)
|
||||
|
||||
|
||||
print( "[6] Copying built executables and resource files ..." )
|
||||
print( " [6] Copying built executables and resource files ..." )
|
||||
#-------------------------------------------------------------
|
||||
# [6] Copy some known files in source directories to
|
||||
# relevant target directories
|
||||
|
|
@ -614,7 +614,7 @@ def DeployBinariesForBundle():
|
|||
os.chmod( targetDirB + "/" + buddy, 0755 )
|
||||
|
||||
|
||||
print( "[7] Setting and changing the identification names of KLayout's libraries in each executable ..." )
|
||||
print( " [7] Setting and changing the identification names of KLayout's libraries in each executable ..." )
|
||||
#-------------------------------------------------------------
|
||||
# [7] Set and change the library identification name(s) of
|
||||
# different executables
|
||||
|
|
@ -641,7 +641,7 @@ def DeployBinariesForBundle():
|
|||
return(1)
|
||||
|
||||
|
||||
print( "[8] Finally, deploying Qt's frameworks ..." )
|
||||
print( " [8] Finally, deploying Qt's frameworks ..." )
|
||||
#-------------------------------------------------------------
|
||||
# [8] Deploy Qt frameworks
|
||||
#-------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue