ApplicationDefinition.st
author Claus Gittinger <cg@exept.de>
Mon, 26 Jul 2010 12:27:10 +0200
changeset 12965 239e0d0eeca0
parent 12960 5d7d08fd4c77
child 12984 3dfc4e2f531d
permissions -rw-r--r--
usevc/usebc handling
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     1
"
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     3
              All Rights Reserved
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     4
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     5
 This software is furnished under a license and may be used
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     6
 only in accordance with the terms of that license and with the
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     8
 be provided or otherwise made available to, or used by, any
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     9
 other person.  No title to or ownership of the software is
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    10
 hereby transferred.
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    11
"
9671
cb20763db715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9669
diff changeset
    12
"{ Package: 'stx:libbasic' }"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    13
9567
dff3e4bd9de2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
    14
ProjectDefinition subclass:#ApplicationDefinition
10996
c2d79a0a0893 'LOCAL_INCLUDES' was missing in bc_dot_mak_mappings
fm
parents: 10990
diff changeset
    15
	instanceVariableNames:''
c2d79a0a0893 'LOCAL_INCLUDES' was missing in bc_dot_mak_mappings
fm
parents: 10990
diff changeset
    16
	classVariableNames:''
c2d79a0a0893 'LOCAL_INCLUDES' was missing in bc_dot_mak_mappings
fm
parents: 10990
diff changeset
    17
	poolDictionaries:''
c2d79a0a0893 'LOCAL_INCLUDES' was missing in bc_dot_mak_mappings
fm
parents: 10990
diff changeset
    18
	category:'System-Support-Projects'
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    19
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
    20
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    21
!ApplicationDefinition class methodsFor:'documentation'!
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    22
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    23
copyright
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    24
"
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    25
 COPYRIGHT (c) 2006 by eXept Software AG
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    26
              All Rights Reserved
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    27
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    28
 This software is furnished under a license and may be used
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    29
 only in accordance with the terms of that license and with the
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    31
 be provided or otherwise made available to, or used by, any
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    32
 other person.  No title to or ownership of the software is
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    33
 hereby transferred.
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    34
"
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    35
!
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    36
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    37
documentation
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    38
"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    39
    subclasses provide the info on the contents of a package/project and
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    40
    how to build executables and class libraries and how to load/unload packages.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    41
    Actually, subclasses MUST be subclasses of the two abstract classes LibraryDefinition or
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    42
    ApplicationDefinition. These two know how to generate all required help files for the
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    43
    making/building/loading processa.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    44
    The makefile creation is driven by file templates which are expanded using strings from the file mappings.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    45
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    46
    Concrete definition classes MUST redefine:
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    47
        classNamesAndAttributes
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    48
                                list of classes which are part of the dll/exe
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    49
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    50
        extensionMethodNames
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    51
                                list of extension methods
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    52
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    53
        startupClassName / startupSelector
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    54
                                class and selector with which the show starts
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    55
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    56
        buildTarget             name of the generated exe-file
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    57
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    58
        
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    59
    should redefine:
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    60
        preRequisites           list of required packages
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    61
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    62
        iconFileName            name of a .ico file containing the applications icon
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    63
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    64
        companyName             name of your company - will be shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    65
                                as attribute of a .dll or .exe
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    66
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    67
        description             short description; shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    68
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    69
        legalCopyright          copyright message; shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    70
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    71
        productName             product name; shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    72
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    73
        applicationName         app name; shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    74
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    75
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    76
    might redefine:    
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    77
        isConsoleApplication    if true, windows-build generates a console app.
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    78
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    79
        isGUIApplication        if true, the GUI framework is linked in
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    80
                                (as opposed to a non-GUI server-like executable)
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    81
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    82
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
    83
    The above info might be outdated a bit - see stx_projects_smalltalk as a concrete example.
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
    84
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    85
    [author:]
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    86
        Felix Madrid
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    87
        Claus Gittinger
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    88
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    89
    [see also:]
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    90
        stx_projects_smalltalk
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    91
        stx_libbasic
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    92
        stx_libbasic2
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    93
"
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    94
! !
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    95
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
    96
!ApplicationDefinition class methodsFor:'accessing'!
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
    97
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
    98
appSourcesProjects
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
    99
    "Returns only the application projects (which are included in the application module)"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   100
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   101
    ^self preRequisites select:[:each | 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   102
        (self moduleFor: each) = self module
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   103
    ].
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   104
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   105
    "
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   106
        bosch_dapasx_application appSourcesProjects
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   107
    "
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   108
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   109
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   110
stxSourcesProjects
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   111
    "Returns only the required STX projects (which are included in the STX module)"
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   112
11480
9608377252d6 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 11422
diff changeset
   113
    ^self effectivePreRequisites select:[:each | 
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   114
        (self moduleFor: each) = (self moduleFor: #'stx')
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   115
    ].
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   116
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   117
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   118
        bosch_dapasx_application stxSourcesProjects
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   119
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   120
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   121
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   122
    #(
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   123
       'libbasic' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   124
       'libbasic2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   125
       'libcomp' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   126
       'libview' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   127
       'libview2'
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   128
       'libwidg' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   129
       'libwidg2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   130
       'libtool' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   131
       'libtool2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   132
       'libhtml' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   133
       'libui'
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   134
    )
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   135
    "
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   136
! !
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   137
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   138
!ApplicationDefinition class methodsFor:'code generation'!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   139
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   140
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   141
    super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   142
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   143
    aTwoArgBlock 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   144
        value:self subProjects_code
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   145
        value:'description'.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   146
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   147
    aTwoArgBlock 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   148
        value:self preRequisites_code
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   149
        value:'description'.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   150
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   151
    aTwoArgBlock 
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   152
        value:self excludedFromPreRequisites_code
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   153
        value:'description'.
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   154
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   155
    (self class includesSelector:#startupClassName) ifFalse:[
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   156
        aTwoArgBlock 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   157
            value:self startupClassName_code
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   158
            value:'description - startup'.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   159
    ].
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   160
    (self class includesSelector:#startupSelector) ifFalse:[
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   161
        aTwoArgBlock 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   162
            value:self startupSelector_code
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   163
            value:'description - startup'.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   164
    ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   165
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   166
    "Created: / 10-08-2006 / 16:35:47 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   167
    "Modified: / 30-08-2006 / 19:03:48 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   168
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   169
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   170
startupClassName_code
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   171
    |classes startClasses mainClasses appClasses|
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   172
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   173
    classes := self classNamesAndAttributes 
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   174
                collect:[:nm | Smalltalk classNamed:nm] 
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   175
                thenSelect:[:cls | cls notNil and:[cls isProjectDefinition not ]].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   176
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   177
    mainClasses := classes select:[:each | each theMetaclass includesSelector:#main ].
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   178
    mainClasses size == 1 ifTrue:[
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   179
        ^ self startupClassName_codeFor:(mainClasses first name)
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   180
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   181
    mainClasses isEmpty ifTrue:[
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   182
        startClasses := classes select:[:each | each theMetaclass includesSelector:#start ].
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   183
        startClasses size == 1 ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   184
            ^ self startupClassName_codeFor:(startClasses first name)
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   185
        ].
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   186
        startClasses isEmpty ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   187
            appClasses := classes select:[:each | each isSubclassOf:ApplicationModel ].
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   188
            appClasses size == 1 ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   189
                ^ self startupClassName_codeFor:(appClasses first name)
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   190
            ].
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   191
        ]
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   192
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   193
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   194
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   195
'startupClassName
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   196
    "the name of the class which starts the show in its <startupSelector> method.
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   197
     Usually, the name of a subclass of StandAloneStartup."
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   198
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   199
    self error:''undefined startupClass''.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   200
    ^ ''<name of class here>''
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   201
'
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   202
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   203
    "Modified: / 27-12-2006 / 11:43:34 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   204
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   205
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   206
startupClassName_codeFor:aClassName
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   207
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   208
'startupClassName
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   209
    "the class that starts the show in its startupSelector method"
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   210
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   211
    ^ ''',aClassName,'''
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   212
'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   213
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   214
    "Created: / 05-09-2006 / 13:40:32 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   215
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   216
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   217
startupSelector_code
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   218
    "generate a the code that answers the startupSelector.
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   219
     try #open and #start."
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   220
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   221
    |clsName cls sel|
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   222
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   223
    Error 
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   224
        handle:[:ex | ] 
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   225
        do:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   226
            clsName := self startupClassName.
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   227
            cls := Smalltalk classNamed:clsName.
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   228
        ].
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   229
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   230
    sel := #start.
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   231
    cls notNil ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   232
        (cls respondsTo:#open) ifTrue:[
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   233
            sel := #open
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   234
        ].
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   235
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   236
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   237
    ^ self startupSelector_codeFor:sel
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   238
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   239
    "Modified: / 27-12-2006 / 11:45:38 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   240
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   241
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   242
startupSelector_codeFor:aSelector
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   243
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   244
'startupSelector
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   245
    "the message that is sent to the startupClass to start the show"
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   246
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   247
    ^ #''',aSelector,'''        
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   248
'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   249
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   250
    "Created: / 05-09-2006 / 13:41:01 / cg"
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   251
    "Modified: / 15-12-2006 / 14:10:11 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   252
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   253
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   254
subProjects_code        
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   255
    |subProjects|
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   256
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   257
    subProjects := 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   258
        (self siblingsAreSubProjects)
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   259
            ifTrue:[ self searchForSiblingProjects ]
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   260
            ifFalse:[ self searchForSubProjects ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   261
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   262
    subProjects removeAll: self excludedFromSubProjects.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   263
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   264
    ^ String streamContents:[:s |
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   265
        s nextPutLine:'subProjects'.
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   266
        s nextPutLine:'    "list packages which are known as subprojects.'.
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   267
        s nextPutLine:'     This method is generated automatically; however, when generating automatically,'. 
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   268
        s nextPutLine:'     packages are only added - never removed, unless listed in #excludedFromSubProjects."'.
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   269
        s nextPutLine:''.
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   270
        s nextPutLine:'    ^ #('.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   271
        subProjects do:[:eachPackageID |    
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   272
            s nextPutLine:eachPackageID asString storeString
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   273
        ].      
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   274
        s nextPutLine:')'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   275
    ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   276
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   277
    "
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   278
     bosch_dapasx subProjectsGeneratedString
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   279
     stx_goodies subProjectsGeneratedString
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   280
    "
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   281
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   282
    "Modified: / 08-08-2006 / 19:24:34 / fm"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   283
    "Created: / 17-08-2006 / 21:26:51 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   284
! !
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   285
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   286
!ApplicationDefinition class methodsFor:'defaults'!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   287
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   288
buildTarget
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   289
    "which target in the Makefile should be built by default?
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   290
     For now, reasonable return values are 'exe', which builds the executable(s),
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   291
     and 'ALL', which builds everything, including an installable package.
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   292
     Here, 'ALL' is returned.
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   293
     There is usually no need to redefine this default - we at exept do it for the
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   294
     stx package only to speed up our own build, as we seldom need new install packages,
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   295
     put often build new executables..."
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   296
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   297
     ^ 'ALL'
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   298
!
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   299
11801
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   300
extraTargets
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   301
    "extra targets to be built when creating the exe"
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   302
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   303
     self needResources ifTrue:[
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   304
        ^ #('RESOURCEFILES')
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   305
     ].
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   306
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   307
     ^ #()
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   308
!
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   309
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   310
guiClassFileNames_unix
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   311
    ^ self guiClasses_unix 
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   312
        collect:[:cls | (cls classBaseFilename asFilename withSuffix:'so') baseName].
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   313
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   314
    "Created: / 14-09-2006 / 18:13:22 / cg"
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   315
    "Modified: / 12-10-2006 / 15:50:39 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   316
!
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   317
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   318
guiClassFileNames_win32
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   319
    ^ self guiClasses_win32 
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   320
        collect:[:cls | (cls classBaseFilename asFilename withSuffix:'dll') baseName].
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   321
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   322
    "Created: / 07-09-2006 / 17:23:13 / cg"
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   323
    "Modified: / 12-10-2006 / 15:50:42 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   324
!
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   325
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   326
guiClasses_unix
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   327
    ^ #()
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   328
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   329
    "Created: / 14-09-2006 / 18:12:58 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   330
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   331
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   332
guiClasses_win32
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   333
    ^ #()
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   334
    "/ ^ Array with:XWorkstation
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   335
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   336
    "Created: / 07-09-2006 / 17:22:27 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   337
    "Modified: / 14-09-2006 / 18:12:35 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   338
!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   339
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   340
needResources
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   341
    "answer true, if this application
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   342
     needs resources to be installed. This is normally true.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   343
     Even non-GUI apps need some (libbasic/resources)"
10214
19326faaa3c6 careful with resources rule (under nt) if module is stx.
Claus Gittinger <cg@exept.de>
parents: 10151
diff changeset
   344
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   345
    ^ true 
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   346
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   347
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   348
!ApplicationDefinition class methodsFor:'description'!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   349
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   350
additionalFilesToInstall
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   351
    "application-specific files to be installed.
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   352
     Can be redefined in subclasses."
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   353
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   354
    ^ #()
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   355
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   356
    "Created: / 01-03-2007 / 20:02:21 / cg"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   357
!
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   358
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   359
additionalResourceTargets
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   360
    "application-specific additional resource targets to be invoked.
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   361
     Can be redefined in subclasses."
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   362
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   363
    ^ #()
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   364
!
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   365
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   366
applicationIconFileName
11073
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   367
    "answer the base-name of the application icon (i.e. 'app' in <app>.ico).
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   368
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   369
     Subclasses MUST redefine this to either return the name of the icon file or
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   370
     nil, if they dont have one.
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   371
     We NO LONGER SUPPORT THE PREVIOUS APPNAME-DEFAULT,
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   372
     because users tend to forget to add the icon file and then get a failing build. "
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   373
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   374
    self subclassResponsibility.
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   375
!
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   376
11082
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   377
applicationInstallIconFileName
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   378
    "answer the base-name of the installer icon (i.e. 'app' in <app>.ico).
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   379
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   380
     Default is the same as the application icon"
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   381
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   382
    ^ self applicationIconFileName.
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   383
!
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   384
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   385
applicationName
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   386
    "answer the name of the application.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   387
     This is also the name of the generated .exe file.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   388
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   389
     Subclasses may redefine this"
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   390
10420
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   391
    ^ self applicationNameFromPackage
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   392
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   393
    "
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   394
     bosch_dapasx_application applicationName     
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   395
     stx_projects_smalltalk applicationName     
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   396
    "
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   397
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   398
    "Created: / 08-08-2006 / 20:25:39 / fm"
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   399
    "Modified: / 30-08-2006 / 19:29:25 / cg"
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   400
!
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   401
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   402
applicationNameConsole
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
   403
    ^ self applicationName, '.com'
10420
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   404
!
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   405
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   406
applicationNameFromPackage
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   407
    "answer the name of the application.
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   408
     This is also the name of the generated .exe file.
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   409
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   410
     Subclasses may redefine this"
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   411
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   412
    |m path|
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   413
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   414
    m := self moduleDirectory.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   415
    path := m subStrings:$/.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   416
    path last = 'application' ifTrue:[
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   417
        path size > 1 ifTrue:[
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   418
            path := path copyWithoutLast:1.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   419
        ].
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   420
    ].
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   421
    ^ path last
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   422
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   423
    "
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   424
     bosch_dapasx_application applicationName     
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   425
     stx_projects_smalltalk applicationName     
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   426
     alspa_batch_application applicationName    
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   427
    "
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   428
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   429
    "Created: / 08-08-2006 / 20:25:39 / fm"
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   430
    "Modified: / 30-08-2006 / 19:29:25 / cg"
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   431
!
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   432
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   433
applicationNameNoConsole
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
   434
    ^ self applicationName , '.exe'
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   435
!
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   436
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   437
applicationPackage
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   438
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   439
    ^self module, ':', self applicationNameFromPackage
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   440
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   441
    "
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   442
     bosch_dapasx_application applicationPackage     
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   443
     stx_projects_smalltalk applicationPackage     
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   444
     alspa_batch_application applicationPackage            
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   445
    "
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   446
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   447
    "Created: / 08-08-2006 / 20:25:39 / fm"
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   448
    "Modified: / 30-08-2006 / 19:29:25 / cg"
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   449
!
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   450
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   451
applicationType 
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   452
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   453
    ^self isGUIApplication
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   454
        ifTrue:['GUI_APPLICATION']
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   455
        ifFalse:['NON_GUI_APPLICATION']
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   456
!
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
   457
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   458
commonFilesToInstall
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   459
    "files installed for applications.
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   460
     Do not redefine - see additionalFilesToInstall for a redefinable variant of this"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   461
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   462
    ^ #(
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   463
        '"*.dll"'
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   464
        '"symbols.stc"'
10572
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
   465
        '"*.stx"'
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
   466
        '"*.rc"'
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   467
        '/r "resources"'
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   468
    )
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   469
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   470
    "Created: / 01-03-2007 / 20:05:40 / cg"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   471
!
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   472
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   473
documentExtensions
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   474
    "list extensions which should be registered with the application.
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   475
     Results in the application to be started when double-clicking on such a file (win32)"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   476
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   477
    ^ #()
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   478
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   479
    "Created: / 15-10-2006 / 12:44:14 / cg"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   480
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   481
10379
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   482
isConsoleApplication
11618
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   483
    "Used with WIN32 only (i.e. affects bc.mak).
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   484
     Return true, if this is a console application. 
10379
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   485
     Console applications have stdout and stderr and open up a command-window
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   486
     when started. Only console applications can interact with the user in the
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   487
     command line window.
11618
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   488
     By default, GUI apps are compiled as non-console apps.
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   489
     If you need both (as in expecco), redefine this as true AND in addition redefine 
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   490
     makeConsoleApplication to return true."
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   491
10379
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   492
    ^ self isGUIApplication not
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   493
10379
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   494
    "Created: / 20-09-2006 / 11:29:24 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   495
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   496
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   497
isGUIApplication
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   498
    "Return true, if this is a GUI app. 
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   499
     Redefine to return false for non-GUI applications (affects inclusion of Display classes)."
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   500
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   501
    ^true
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   502
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   503
    "Created: / 08-08-2006 / 11:15:01 / fm"
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   504
    "Modified: / 17-08-2006 / 19:47:36 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   505
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   506
9823
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   507
isSingleThreadedApplication
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   508
    "Return true, if this should be started without multiple threads. 
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   509
     (not possible with gui applications)"
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   510
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   511
    ^false
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   512
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   513
    "Created: / 05-09-2006 / 13:36:18 / cg"
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   514
!
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   515
10418
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   516
logFilenameNoConsole
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   517
    "/ ^ (self applicationNameNoConsole , '_%d.log')
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
   518
    ^ (self applicationName , '.log')
10418
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   519
!
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   520
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   521
mainDefines
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   522
    ^ '-DIGNORE_IMAGE -DNO_DISPLAY'
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   523
!
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   524
11618
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   525
makeConsoleApplication
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   526
    "Used with WIN32 only (i.e. affects bc.mak).
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   527
     Return true, if this should be built as a console application.
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   528
     Redefine to return true, if you want one always 8i.e. to generate both)."
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   529
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
   530
    ^ self isConsoleApplication
11618
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   531
!
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   532
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   533
makeNonConsoleApplication
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   534
    "Used with WIN32 only (i.e. affects bc.mak).
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   535
     Return true, if this should be built as a non-console application"
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   536
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   537
    ^ self isGUIApplication
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   538
!
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
   539
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   540
offerApplicationSourceCode
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   541
    "Return true, if the source code of the application should be offered as install option"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   542
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   543
    ^ false
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   544
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   545
    "Created: / 15-05-2007 / 16:46:05 / cg"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   546
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   548
offerSmalltalkSourceCode
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   549
    "Return true, if the source code of the smalltalk base system should be offered as install option"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   550
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   551
    ^ false
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   552
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   553
    "Created: / 15-05-2007 / 16:46:18 / cg"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   554
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   555
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
   556
startupClassName
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   557
    "The name of the class which provides the entry point for the application."
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   558
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   559
    self subclassResponsibility
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   560
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   561
    "Modified: / 17-08-2006 / 20:00:22 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   562
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   563
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
   564
startupSelector
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   565
    "The name of the entry point method (in startUpClass) used to start the application."
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   566
10379
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   567
    ^ #start
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   568
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   569
    "Modified: / 17-08-2006 / 20:01:00 / cg"
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   570
! !
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   571
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   572
!ApplicationDefinition class methodsFor:'description - project information'!
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   573
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   574
description
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   575
    "Returns a description string which will appear in nt.def / bc.def"
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   576
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   577
    self module = 'stx' ifTrue:[
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   578
        ^ 'Smalltalk/X Application'
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   579
    ].
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   580
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
   581
    ^ 'Application'
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   582
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   583
    "Created: / 17-08-2006 / 20:52:48 / cg"
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
   584
    "Modified: / 18-08-2006 / 16:16:01 / cg"
9889
c480dd24d0b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9886
diff changeset
   585
!
c480dd24d0b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9886
diff changeset
   586
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   587
docDirPath
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   588
    "path relative to my dir to the documentation - or empty."
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   589
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   590
    ^ ''
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   591
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   592
    "Created: / 20-09-2006 / 17:58:40 / cg"
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   593
!
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   594
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   595
docDirPath_unix
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   596
    "path relative to my dir to the documentation - or nil"
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   597
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   598
    ^ self docDirPath replaceAll:$\ with:$/.
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   599
!
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   600
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   601
docDirPath_win32
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   602
    "path relative to my dir to the documentation - or nil"
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   603
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   604
    ^ self docDirPath replaceAll:$/ with:$\.
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   605
!
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
   606
9900
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   607
hasLicenceToAcceptDuringInstallation
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   608
    ^ false
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   609
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   610
    "Created: / 14-09-2006 / 22:34:00 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   611
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   612
c897f2e72672 initial checkin
fm
parents:
diff changeset
   613
!ApplicationDefinition class methodsFor:'file generation'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   614
9854
d1ae554dd112 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9835
diff changeset
   615
basicFileNamesToGenerate
10863
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   616
    "answer a dictionary (filename -> generator method) with all the files, that have to be generated for this
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   617
     package"
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   618
    
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   619
    |dict|
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   620
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   621
    dict := super basicFileNamesToGenerate.
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   622
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   623
    dict 
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   624
        at:'modules.stx'        put:#'generate_modules_dot_stx';
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   625
        at:'modules.c'          put:#'generate_modules_dot_c';
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   626
        at:self rcFilename      put:#'generate_packageName_dot_rc';
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   627
        at:self nsiFilename     put:#'generate_packageName_dot_nsi'.
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   628
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   629
    ^ dict.
9623
474878a8887e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9614
diff changeset
   630
!
474878a8887e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9614
diff changeset
   631
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   632
generateFile:filename
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   633
    (filename = 'app.nsi' or:[filename = self nsiFilename]) ifTrue:[
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   634
        ^ self generate_packageName_dot_nsi
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   635
    ].
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   636
    ^ super generateFile:filename
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   637
!
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   638
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   639
generate_modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   640
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   641
    ^self replaceMappings: self modules_dot_c_mappings 
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   642
            in: self modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   643
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   644
    "
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   645
     bosch_dapasx_application generate_modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   646
    "
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   647
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   648
    "Created: / 19-09-2006 / 22:35:27 / cg"
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   649
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   650
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   651
generate_modules_dot_stx
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   652
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   653
    ^self replaceMappings: self modules_dot_stx_mappings 
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   654
            in: self modules_dot_stx
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   655
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   656
"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   657
  bosch_dapasx_application generate_modules_dot_stx
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   658
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   659
"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   660
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   661
    "Modified: / 09-08-2006 / 11:31:09 / fm"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   662
    "Modified: / 11-08-2006 / 14:01:56 / cg"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   663
!
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   664
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   665
generate_packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   666
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   667
    ^self 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   668
        replaceMappings: self packageName_dot_nsi_mappings 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   669
        in: self packageName_dot_nsi
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   670
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   671
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   672
     bosch_dapasx_application generate_packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   673
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   674
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   675
    "Modified: / 09-08-2006 / 11:31:09 / fm"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   676
    "Created: / 14-09-2006 / 21:08:23 / cg"
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   677
    "Modified: / 15-10-2006 / 12:52:21 / cg"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   678
!
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   679
10863
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   680
nsiFilename
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   681
    ^ self packageName,'.nsi'.
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   682
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   683
    "Created: / 14-09-2006 / 21:03:41 / cg"
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   684
!
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   685
9830
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   686
rcFilename
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   687
    ^ self packageName,'WinRC.rc'.
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   688
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   689
    "Created: / 07-09-2006 / 17:07:08 / cg"
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   690
!
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   691
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   692
resourceFilename
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   693
    ^ (self rcFilename asFilename withSuffix:'res') name
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   694
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   695
    "Created: / 07-09-2006 / 17:12:53 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   696
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   697
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   698
!ApplicationDefinition class methodsFor:'file mappings'!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   699
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   700
additionalFilesToInstall_dot_nsi:bindings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   701
    ^ String 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   702
        streamContents:[:s | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   703
            self additionalFilesToInstall do:[:pattern | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   704
                s nextPutLine:((self installFileLine_nsi_for:pattern) 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   705
                            expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   706
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   707
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   708
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   709
    "Created: / 01-03-2007 / 19:59:18 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   710
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   711
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   712
additionalSectionsDescriptions_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   713
    ^''
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   714
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   715
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   716
additionalSectionsDescriptions_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   717
    ^self additionalSectionsDescriptions_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   718
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   719
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   720
additionalSectionsInsertDescriptions_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   721
    ^''
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   722
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   723
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   724
additionalSectionsInsertDescriptions_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   725
    ^self additionalSectionsInsertDescriptions_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   726
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   727
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   728
additionalSections_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   729
    ^''
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   730
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   731
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   732
additionalSections_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   733
    ^self additionalSections_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   734
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   735
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   736
appSourcesLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   737
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   738
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   739
('Section "Application Sources" Section4
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   740
    SectionIn 1
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   741
    SetOverwrite ifnewer
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   742
' expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   743
        self appSourcesProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   744
            s nextPutAll:((self defineAPPSourceLine_nsi_for: projectID)expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   745
            s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   746
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   747
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   748
'SectionEnd'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   749
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   750
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   751
    "Created: / 15-10-2006 / 12:59:03 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   752
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   753
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   754
bc_dot_mak_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   755
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   756
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   757
    d := super bc_dot_mak_mappings.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   758
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   759
        at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   760
        at: 'CONSOLE_APPLICATION_OR_EMPTY' put:(self makeConsoleApplication ifTrue:['consoleApp'] ifFalse:'');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   761
        at: 'NOCONSOLE_APPLICATION_OR_EMPTY' put:(self makeNonConsoleApplication ifTrue:['noConsoleApp'] ifFalse:'');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   762
        at: 'APPLICATION' put: (self applicationName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   763
        at: 'NSI_FILENAME' put: self nsiFilename ;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   764
        at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   765
        at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   766
        at: 'NOCONSOLE_LOGFILE' put:(self logFilenameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   767
        at: 'RESFILENAME' put: (self resourceFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   768
        at: 'RCFILENAME' put: (self rcFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   769
        at: 'STARTUP_CLASS' put: ( self startupClassName );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   770
        at: 'STARTUP_SELECTOR' put: (self startupSelector );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   771
        at: 'MAIN_DEFINES' put: (self mainDefines );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   772
        at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_bc_dot_mak); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   773
        at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_bc_dot_mak );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   774
        at: 'DEPENDENCIES' put: (self generateDependencies_win32);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   775
        at: 'SUBPROJECTS_LIBS' put: (self generateSubProjectLines_bc_dot_mak ); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   776
        at: 'BUILD_TARGET' put: (self buildTarget );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   777
        at: 'REQUIRED_SUPPORT_DIRS' put: (self extraTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   778
        yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   779
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   780
    self needResources ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   781
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   782
            at: 'RESOURCE_RULES' put:( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   783
                                            in: self bc_dot_mak_resource_rules );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   784
            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   785
                                            in: self bc_dot_mak_stx_resource_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   786
            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   787
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   788
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   789
    self offerSmalltalkSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   790
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   791
            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   792
                                               in: self bc_dot_mak_stx_source_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   793
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   794
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   795
    self offerApplicationSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   796
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   797
            at: 'APP_SOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   798
                                               in: self bc_dot_mak_app_source_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   799
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   800
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   801
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   802
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   803
    "Modified: / 15-05-2007 / 17:27:04 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   804
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   805
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   806
buildDate_dot_h_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   807
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   808
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   809
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   810
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   811
        at: 'BUILDDATE' put: (Timestamp now printStringRFC1123Format ). 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   812
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   813
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   814
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   815
    "Created: / 30-08-2006 / 19:19:30 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   816
    "Modified: / 14-09-2006 / 18:58:31 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   817
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   818
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   819
commonFilesToInstall_dot_nsi:bindings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   820
    ^ String 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   821
        streamContents:[:s | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   822
            self commonFilesToInstall do:[:pattern | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   823
                s nextPutLine:((self installFileLine_nsi_for:pattern) 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   824
                            expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   825
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   826
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   827
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   828
    "Created: / 01-03-2007 / 20:05:20 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   829
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   830
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   831
directoryUninstallLines_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   832
    "%(DIRECTORY_UNINSTALL_LINES)"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   833
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   834
  ^'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   835
    Delete "$INSTDIR\*"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   836
    RMDir /r "$INSTDIR"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   837
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   838
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   839
fileExtensionDefinitionLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   840
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   841
        self documentExtensions do:[:ext |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   842
            s nextPutAll:((self defineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   843
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   844
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   845
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   846
    "Created: / 15-10-2006 / 12:59:03 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   847
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   848
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   849
fileExtensionUndefinitionLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   850
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   851
        self documentExtensions do:[:ext |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   852
            s nextPutAll:((self undefineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   853
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   854
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   855
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   856
    "Created: / 15-10-2006 / 12:59:18 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   857
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   858
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   859
make_dot_proto_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   860
    |mappings|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   861
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   862
    mappings := super make_dot_proto_mappings.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   863
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   864
    mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   865
        at: 'TOP' put: ( self pathToTop_unix );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   866
        at: 'NSI_FILENAME' put: self nsiFilename ;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   867
        at: 'APPLICATION' put: self applicationName;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   868
        at: 'APPLICATION_PACKAGE' put: self package printString "applicationPackage";
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   869
        at: 'APPLICATION_TYPE' put: self applicationType;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   870
        at: 'STARTUP_CLASS' put: (self startupClassName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   871
        at: 'STARTUP_SELECTOR' put: (self startupSelector);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   872
        at: 'MAIN_DEFINES' put: (self mainDefines);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   873
        at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_make_dot_proto);  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   874
        at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_make_dot_proto);  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   875
        at: 'SUBPROJECTS_LIBS' put: (self generateSubProjectLines_make_dot_proto); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   876
        at: 'REQUIRED_LIBOBJS' put: (self generateRequiredLibobjs_make_dot_proto);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   877
        at: 'REQUIRED_LINK_LIBOBJS' put: (self generateRequiredLinkLibobjs_make_dot_proto);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   878
        at: 'DEPENDENCIES' put: (self generateDependencies_unix);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   879
        at: 'SUBPROJECTS_LIBS' put: (self generateSubProjectLines_make_dot_proto ); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   880
        at: 'BUILD_TARGET' put: (self buildTarget ).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   881
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   882
    self offerSmalltalkSourceCode ifTrue:[ 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   883
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   884
            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   885
                                            in: self make_dot_proto_stx_source_rules).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   886
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   887
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   888
    self offerApplicationSourceCode ifTrue:[  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   889
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   890
            at: 'SOURCE_RULES' put:( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   891
                                            in: self make_dot_proto_app_source_rules ).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   892
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   893
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   894
    self needResources ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   895
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   896
            at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES';
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   897
            at: 'RESOURCE_RULES' put:( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   898
                                            in: self make_dot_proto_resource_rules );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   899
            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   900
                                            in: self make_dot_proto_stx_resource_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   901
            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   902
            yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   903
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   904
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   905
    ^ mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   906
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   907
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   908
modules_dot_c_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   909
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   910
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   911
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   912
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   913
        at: 'INIT_LIST' put: (self generateClassLines:(self classLine_modules_dot_c));
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   914
        at: 'EXTERN_INIT_NAME_LIST' put: (self generateClassLines:(self classLine_modules_dot_c_extern));
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   915
        yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   916
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   917
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   918
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   919
    "Created: / 19-09-2006 / 22:42:15 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   920
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   921
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   922
modules_dot_stx_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   923
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   924
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   925
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   926
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   927
        at: 'PREREQUISITE_LIBS' put: (self generatePreRequisiteLibs_modules_dot_stx);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   928
        at: 'ALLPREREQUISITE_LIBS' put: (self generateAllPreRequisiteLibs_modules_dot_stx);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   929
        at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLines_modules_dot_stx  ). 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   930
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   931
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   932
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   933
    "Modified: / 14-09-2006 / 18:58:41 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   934
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   935
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   936
nsiDeliveredConsoleExecutable
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   937
    self isGUIApplication ifFalse:[^ '' "made anyway"].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   938
    self makeConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   939
        ^ ('"',self applicationName,'.com','"').
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   940
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   941
    ^ ''
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   942
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   943
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   944
nsiDeliveredExecutables
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   945
    "by default, an executable named after the application.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   946
     Redefine, if thats not the case. If multiple have to be delivered, 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   947
     return a string containing each individually double-quoted."
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   948
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   949
    |s|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   950
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   951
    s := ''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   952
    self makeNonConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   953
        s := '"', self applicationNameNoConsole,'"'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   954
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   955
    self makeConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   956
        s := s , (' "',self applicationNameConsole,'"').
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   957
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   958
    ^ s
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   959
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   960
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   961
packageName_dot_nsi_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   962
    |d s defLines undefLines stxSourcesLines appSourcesLines|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   963
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   964
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   965
    d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   966
        at: 'TOP' put: ( self pathToTop_win32 );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   967
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   968
        at: 'APPLICATION' put: (self applicationName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   969
        at: 'APPLICATION_ICON' put: (self applicationInstallIconFileName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   970
        at: 'NSI_FILENAME' put: (self nsiFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   971
        at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   972
        at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   973
        at: 'DELIVERED_EXECUTABLES' put: (self nsiDeliveredExecutables);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   974
        at: 'MODULE' put: ( self module );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   975
        at: 'MODULE_KEY' put: ( self module asUppercaseFirst );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   976
        at: 'PRODUCT_NAME' put: (self productName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   977
        at: 'PRODUCT_FILENAME' put: (self productFilename);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   978
        at: 'PRODUCT_VERSION' put: (self productVersion);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   979
        at: 'PRODUCT_DATE' put: (self productDate);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   980
        at: 'PRODUCT_PUBLISHER' put: (self productPublisher);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   981
        at: 'PRODUCT_WEBSITE' put: (self productWebSite);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   982
        at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   983
        at: 'FILETYPE' put: ( 'VFT_DLL' );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   984
        at: 'FILE_VERSION_COMMASEPARATED' put: (self fileVersionCommaSeparated);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   985
        at: 'PRODUCT_VERSION_COMMASEPARATED' put: (self productVersionCommaSeparated);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   986
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   987
        at: 'COMPANY_NAME' put: (self companyName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   988
        at: 'FILE_DESCRIPTION' put: (self fileDescription);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   989
        at: 'FILE_VERSION' put: (self fileVersion);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   990
        at: 'LEGAL_COPYRIGHT' put: (self legalCopyright ? '');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   991
        at: 'INTERNAL_NAME' put: (self internalName).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   992
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   993
    s := self legalCopyright.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   994
    s notNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   995
        d  at: 'LEGAL_COPYRIGHT_LINE' put: '      VALUE "LegalCopyright", "',s,'\0"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   996
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   997
    s := self applicationInstallIconFileName.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   998
    s isNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   999
        d  at:'SEMI_IF_NO_ICON_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1000
        d  at:'SEMI_IF_ICON_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1001
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1002
        d  at:'SEMI_IF_NO_ICON_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1003
        d  at:'SEMI_IF_ICON_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1004
"/        d  at: #'ICONDEFINITION_LINE' put: 'IDR_MAINFRAME           ICON    DISCARDABLE     "',s,'"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1005
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1006
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1007
"/    s := self splashFileName.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1008
"/    s notNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1009
"/        d  at: #'SPLASHDEFINITION_LINE' put: 'IDR_SPLASH            BITMAP DISCARDABLE     "',s,'"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1010
"/    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1011
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1012
    s := self docDirPath_win32.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1013
    s isEmptyOrNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1014
        d  at:'SEMI_IF_NO_DOC_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1015
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1016
        d  at:'SEMI_IF_NO_DOC_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1017
    ].   
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1018
    self offerSmalltalkSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1019
        stxSourcesLines := self stxSourcesLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1020
        d at:'STX_SOURCES_LINES' put:stxSourcesLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1021
        d  at:'SEMI_IF_NO_STX_SOURCES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1022
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1023
        d at:'STX_SOURCES_LINES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1024
        d  at:'SEMI_IF_NO_STX_SOURCES' put:';;'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1025
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1026
    self offerApplicationSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1027
        appSourcesLines := self appSourcesLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1028
        d at:'APP_SOURCES_LINES' put:appSourcesLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1029
        d at:'SEMI_IF_NO_STX_SOURCES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1030
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1031
        d at:'APP_SOURCES_LINES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1032
        d at:'SEMI_IF_NO_APP_SOURCES' put:';;'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1033
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1034
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1035
    defLines := self fileExtensionDefinitionLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1036
    undefLines := self fileExtensionUndefinitionLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1037
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1038
    d at:'FILE_EXTENSION_DEFINITION_LINES' put:defLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1039
    d at:'FILE_EXTENSION_UNDEFINITION_LINES' put:undefLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1040
    d at:'ADDITIONAL_FILES_TO_INSTALL' put:(self additionalFilesToInstall_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1041
    d at:'COMMON_FILES_TO_INSTALL' put:(self commonFilesToInstall_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1042
    d at:'ADDITIONAL_SECTIONS' put:(self additionalSections_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1043
    d at:'ADDITIONAL_SECTIONS_DESCRIPTIONS' put:(self additionalSectionsDescriptions_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1044
    d at:'ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS' put:(self additionalSectionsInsertDescriptions_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1045
    d at: 'DIRECTORY_UNINSTALL_LINES' put: (self directoryUninstallLines_dot_nsi).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1046
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1047
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1048
    "Created: / 14-09-2006 / 21:08:44 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1049
    "Modified: / 15-05-2007 / 17:24:27 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1050
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1051
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1052
preRequisiteLine_bc_dot_mak_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1053
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1054
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1055
        at: 'FILE_NAME' put: (self libraryNameFor:aProjectID);  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1056
        at: 'MODULE_DIRECTORY' put: (self msdosPathToPackage:aProjectID from:self package);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1057
        at: 'BACK_DIRECTORY' put: (self msdosPathToPackage:self package from:aProjectID);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1058
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1059
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1060
    "Modified: / 09-02-2007 / 16:59:21 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1061
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1062
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1063
preRequisiteLine_bc_dot_mak_mappingsForClass:aClass
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1064
    |relPath|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1065
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1066
    relPath := (PackageId from:aClass package) directory copy replaceAll:$/ with:$\.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1067
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1068
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1069
        at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1070
        at: 'MODULE_DIRECTORY' put:relPath;     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1071
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1072
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1073
    "Modified: / 09-02-2007 / 16:28:12 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1074
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1075
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1076
preRequisiteLine_make_dot_proto_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1077
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1078
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1079
        at: 'FILE_NAME' put: (self libraryNameFor:aProjectID);  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1080
        at: 'MODULE_DIRECTORY' put: (self unixPathToPackage:aProjectID from:self package);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1081
        at: 'BACK_DIRECTORY' put: (self unixPathToPackage:self package from:aProjectID);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1082
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1083
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1084
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1085
preRequisiteLine_make_dot_proto_mappingsForClass:aClass
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1086
    |relPath|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1087
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1088
    relPath := (PackageId from:aClass package) directory.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1089
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1090
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1091
        at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1092
        at: 'MODULE_DIRECTORY' put:relPath;     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1093
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1094
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1095
    "Modified: / 09-02-2007 / 16:28:12 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1096
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1097
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1098
stxSourcesLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1099
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1100
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1101
'Section "STX Sources" Section3
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1102
    SectionIn 1
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1103
    SetOverwrite ifnewer
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1104
'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1105
        self stxSourcesProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1106
            s nextPutAll:((self defineSTXSourceLine_nsi_for: projectID) expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1107
            s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1108
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1109
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1110
'SectionEnd'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1111
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1112
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1113
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1114
    "Created: / 15-10-2006 / 12:59:03 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1115
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1116
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1117
subProjectLine_bc_dot_mak_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1118
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1119
        at: 'LIBRARY_NAME' put: (self libraryNameFor: aProjectID );     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1120
        at: 'PATH_TO_SUB_PROJECT' put: ( (PackageId from:aProjectID) module,'\',(PackageId from:aProjectID) directory copy replaceAll:$/ with:$\ ); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1121
        at: 'PATH_TO_MYPROJECT' put: (self msdosPathToPackage: self package from: aProjectID); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1122
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1123
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1124
    "Modified: / 14-09-2006 / 18:59:26 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1125
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1126
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1127
subProjectLine_make_dot_proto_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1128
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1129
        at: 'LIBRARY_NAME' put: (self libraryNameFor: aProjectID );     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1130
        at: 'PATH_TO_SUB_PROJECT' put: ( (PackageId from:aProjectID) module,'\',(PackageId from:aProjectID) directory copy replaceAll:$/ with:$\ ); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1131
        at: 'PATH_TO_MYPROJECT' put: (self unixPathToPackage: self package from: aProjectID); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1132
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1133
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1134
    "Modified: / 14-09-2006 / 18:59:26 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1135
! !
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1136
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1137
!ApplicationDefinition class methodsFor:'file mappings support'!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1138
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1139
generateAllPreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1140
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1141
        self allPreRequisitesSorted do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1142
            s nextPutLine:(self libraryNameFor:projectID)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1143
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1144
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1145
            self guiClassFileNames_win32 do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1146
                s nextPutLine:(eachFilename asFilename withoutSuffix baseName)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1147
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1148
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1149
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1150
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1151
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1152
     bosch_dapasx_application generatePreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1153
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1154
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1155
    "Modified: / 07-09-2006 / 17:22:58 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1156
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1157
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1158
generatePreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1159
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1160
        self effectivePreRequisites do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1161
            s nextPutLine:(self libraryNameFor:projectID)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1162
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1163
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1164
            self guiClassFileNames_win32 do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1165
                s nextPutLine:(eachFilename asFilename withoutSuffix baseName)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1166
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1167
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1168
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1169
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1170
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1171
     bosch_dapasx_application generatePreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1172
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1173
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1174
    "Modified: / 07-09-2006 / 17:22:58 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1175
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1176
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1177
generatePreRequisiteLines_bc_dot_mak         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1178
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1179
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1180
        self allPreRequisitesSorted do:[:eachPackage |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1181
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1182
            mappings := self preRequisiteLine_bc_dot_mak_mappings: eachPackage.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1183
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1184
                                in: self preRequisiteLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1185
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1186
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1187
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1188
        self guiClasses_win32 do:[:eachClass |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1189
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1190
            mappings := self preRequisiteLine_bc_dot_mak_mappingsForClass: eachClass.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1191
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1192
                                in: self preRequisiteLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1193
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1194
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1195
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1196
    ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1197
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1198
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1199
     bosch_dapasx_application generatePreRequisiteLines_bc_dot_mak 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1200
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1201
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1202
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1203
    "Modified: / 14-09-2006 / 21:58:47 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1204
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1205
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1206
generatePreRequisiteLines_make_dot_proto        
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1207
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1208
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1209
        self allPreRequisitesSorted do:[:eachPackage |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1210
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1211
            mappings := self preRequisiteLine_make_dot_proto_mappings: eachPackage.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1212
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1213
                                in: self preRequisiteLine_make_dot_proto.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1214
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1215
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1216
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1217
        self guiClasses_win32 do:[:eachClass |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1218
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1219
            mappings := self preRequisiteLine_make_dot_proto_mappingsForClass: eachClass.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1220
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1221
                                in: self preRequisiteLine_make_dot_proto.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1222
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1223
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1224
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1225
    ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1226
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1227
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1228
     bosch_dapasx_application generatePreRequisiteLines_bc_dot_mak 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1229
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1230
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1231
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1232
    "Modified: / 14-09-2006 / 21:58:47 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1233
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1234
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1235
generateRequiredLibobjs_make_dot_proto
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1236
    |libobjPath libPath|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1237
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1238
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1239
        self allPreRequisitesSorted do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1240
            libPath := self pathToPackage_unix:projectID.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1241
            libobjPath := libPath , '/', (self libraryNameFor:projectID).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1242
            s space; nextPutAll: libobjPath,'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1243
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1244
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1245
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1246
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1247
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1248
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1249
     alspa_batch_application generateRequiredLibobjs_make_dot_proto      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1250
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1251
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1252
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1253
generateRequiredLibs_bc_dot_mak
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1254
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1255
        s nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1256
        self allPreRequisitesSorted do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1257
            s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1258
        ].
12600
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1259
        self subProjects do:[:projectID | 
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1260
            s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'.
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1261
        ].
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1262
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1263
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1264
            self guiClassFileNames_win32 do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1265
                s space; nextPutAll:eachFilename; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1266
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1267
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1268
"/        self subProjects do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1269
"/            s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1270
"/        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1271
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1272
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1273
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1274
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1275
     bosch_dapasx_application generateRequiredLibs_bc_dot_mak      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1276
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1277
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1278
    "Modified: / 07-09-2006 / 17:22:51 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1279
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1280
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1281
generateRequiredLibs_make_dot_proto
12600
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1282
    "/ cg: why not (self libraryNameFor:projectID),'.so'; ???
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1283
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1284
        self allPreRequisitesSorted do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1285
            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1286
        ].
12600
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1287
        self subProjects do:[:projectID | 
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1288
            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'.
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1289
        ].
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1290
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1291
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1292
            self guiClassFileNames_unix do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1293
                s space; nextPutAll:eachFilename; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1294
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1295
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1296
"/        self subProjects do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1297
"/            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1298
"/        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1299
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1300
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1301
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1302
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1303
     alspa_batch_application generateRequiredLibs_make_dot_proto      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1304
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1305
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1306
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1307
generateRequiredLinkLibobjs_make_dot_proto
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1308
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1309
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1310
        self allPreRequisitesSorted do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1311
            s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1312
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1313
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1314
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1315
            self guiClassFileNames_unix do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1316
                s space; nextPutAll:eachFilename,'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1317
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1318
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1319
"/        self subProjects do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1320
"/            s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1321
"/        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1322
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1323
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1324
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1325
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1326
     alspa_batch_application generateRequiredLinkLibobjs_make_dot_proto      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1327
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1328
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1329
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1330
generateSubProjectLines_bc_dot_mak         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1331
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1332
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1333
        self subProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1334
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1335
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1336
            mappings := self subProjectLine_bc_dot_mak_mappings: projectID.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1337
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1338
                                in: self subProjectLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1339
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1340
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1341
        ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1342
    ]
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1343
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1344
    "
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1345
     bosch_dapasx_application generateSubProjectLines_bc_dot_mak 
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1346
     cg_newCompiler_driver_stc generateSubProjectLines_bc_dot_mak 
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1347
    "
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1348
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1349
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1350
    "Modified: / 14-09-2006 / 18:46:09 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1351
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1352
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1353
generateSubProjectLines_make_dot_proto         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1354
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1355
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1356
        self subProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1357
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1358
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1359
            mappings := self subProjectLine_make_dot_proto_mappings: projectID.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1360
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1361
                                in: self subProjectLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1362
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1363
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1364
        ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1365
    ]
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1366
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1367
    "
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1368
     bosch_dapasx_application generateSubProjectLines_make_dot_proto 
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1369
     cg_newCompiler_driver_stc generateSubProjectLines_make_dot_proto
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1370
    "
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1371
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1372
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1373
    "Modified: / 14-09-2006 / 18:46:09 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1374
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1375
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1376
generateSubProjectLines_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1377
    |string|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1378
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1379
    string := String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1380
            self subProjects do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1381
                    s nextPutLine:(self libraryNameFor:projectID)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1382
                ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1383
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1384
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1385
    ^ string
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1386
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1387
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1388
     bosch_dapasx_application generateSubProjectLines_modules_dot_stx
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1389
     cg_newCompiler_driver_stc generateSubProjectLines_modules_dot_stx
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1390
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1391
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1392
    "Modified: / 17-08-2006 / 17:22:37 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1393
! !
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1394
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  1395
!ApplicationDefinition class methodsFor:'file templates'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  1396
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1397
bc_dot_def
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  1398
    "the template code for the bc.def file"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1399
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1400
^ 
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1401
'DESCRIPTION     %(DESCRIPTION)
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1402
CODE            PRELOAD MOVEABLE DISCARDABLE
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1403
SEGMENTS
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1404
    INITCODE    PRELOAD DISCARDABLE
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1405
'
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1406
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1407
    "Created: / 08-08-2006 / 12:26:58 / fm"
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1408
    "Modified: / 08-08-2006 / 19:32:27 / fm"
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  1409
    "Modified: / 17-08-2006 / 20:05:17 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1410
!
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1411
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1412
bc_dot_mak
10316
b617a026a146 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10313
diff changeset
  1413
    "answer a template for the bc.mak makefile.
b617a026a146 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10313
diff changeset
  1414
     Any variable definition %(Variable) will be later replaced by the mapping.
b617a026a146 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10313
diff changeset
  1415
     $% characters have to be duplicated"
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1416
10316
b617a026a146 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10313
diff changeset
  1417
^ '# $','Header','$
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1418
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1419
# DO NOT EDIT 
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1420
# automagically generated from the projectDefinition: ',self name,'.
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1421
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1422
# Warning: once you modify this file, do not rerun
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1423
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1424
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1425
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1426
TOP=%(TOP)       
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1427
INCLUDE_TOP=$(TOP)\..
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1428
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1429
# CFLAGS1= -WD -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c -tWDR
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1430
CFLAGS1= -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1431
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1432
CFLAGS_CONSOLE=-tWC -tWR -D_NO_VCL;WIN32
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1433
CFLAGS_NOCONSOLE=-tWR -D_NO_VCL;WIN32GUI;WIN32
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1434
LFLAGS_CONSOLE=-ap
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1435
LFLAGS_NOCONSOLE=-aa
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1436
CRT_STARTUP_CONSOLE=c0x32.obj
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1437
CRT_STARTUP_NOCONSOLE=c0w32.obj
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1438
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1439
CFLAGS_LOCAL=$(CFLAGS_APPTYPE) \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1440
 -DSTARTUP_CLASS="\"%(STARTUP_CLASS)\"" \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1441
 -DSTARTUP_SELECTOR="\"%(STARTUP_SELECTOR)\"" \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1442
 -DUSE_MODULE_TABLE
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1443
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1444
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1445
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1446
!!INCLUDE $(TOP)\rules\stdHeader_bc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1447
!!INCLUDE Make.spec
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1448
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1449
OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1450
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1451
%(ADDITIONAL_DEFINITIONS)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1452
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1453
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1454
LIBNAME=dummy
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1455
STCOPT="+optinline"
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1456
LOCALINCLUDES=%(LOCAL_INCLUDES)
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1457
LOCALDEFINES=%(LOCAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1458
GLOBALDEFINES=%(GLOBAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1459
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1460
STCLOCALOPT=''-package=$(PACKAGE)'' $(LOCALDEFINES) $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) $(COMMONSYMFLAG) -varPrefix=$(LIBNAME)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1461
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1462
LINKER = ilink32
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1463
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1464
# LFLAGS = -L$(TOP)\libbc;$(BCB)\lib;$(DEBUGLIBPATH) -H:0x400000 -Hc:0x100000 -S:0x40000 -Sc:0x10000 -ap -Tpe -x -Gn -v -Ao:0x10000
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1465
LFLAGS = -L$(TOP)\libbc;$(BCB)\lib -S:0x40000 -Sc:0x10000 $(LFLAGS_APPTYPE) -Tpe -x -Gn -v -Ao:0x10000
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1466
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  1467
PROJECT_NOCONSOLE = %(NOCONSOLE_APPLICATION)
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  1468
PROJECT_CONSOLE = %(CONSOLE_APPLICATION)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1469
ALLOBJFILES = main.obj
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1470
RESFILES = %(RESFILENAME)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1471
ALLOBJ = $(CRT_STARTUP) $(ALLOBJFILES) $(OBJS)
10316
b617a026a146 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10313
diff changeset
  1472
DEFFILE=$(TOP)\rules\bc_exe.def
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1473
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1474
LIBFILES=$(TOP)\libbc\librun.lib
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1475
ALLLIB=$(LIBFILES) import32.lib $(RT_LIB)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1476
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1477
REQUIRED_LIBS=librun.dll %(REQUIRED_LIBS)
11688
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1478
REQUIRED_FILES=cs3245.dll X11.dll Xext.dll symbols.stc $(REQUIRED_LIBS)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1479
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1480
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1481
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1482
target: %(BUILD_TARGET) 
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1483
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1484
# the executable, all required files and a self-installing-installer-exe
11422
89adf2a53bcf Make prereq before building the application
Stefan Vogel <sv@exept.de>
parents: 11381
diff changeset
  1485
ALL:: prereq exe setup
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1486
11618
4164f09b7248 allow for both a console AND a non-console app to be made in one build.
Claus Gittinger <cg@exept.de>
parents: 11612
diff changeset
  1487
exe:  newBuildDate %(NOCONSOLE_APPLICATION_OR_EMPTY) %(CONSOLE_APPLICATION_OR_EMPTY) $(REQUIRED_SUPPORT_DIRS) %(ADDITIONAL_TARGETS)
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1488
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1489
# the executable only
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1490
# with console
11675
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  1491
consoleApp:
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1492
        -del main.obj
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1493
        $(MAKE) -N -f bc.mak \
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  1494
                MAKE_BAT=$(MAKE_BAT) \
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1495
                PROJECT=$(PROJECT_CONSOLE) \
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1496
                CFLAGS_APPTYPE="$(CFLAGS_CONSOLE)" \
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1497
                LFLAGS_APPTYPE="$(LFLAGS_CONSOLE)" \
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1498
                CRT_STARTUP="$(CRT_STARTUP_CONSOLE)" theExe
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1499
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1500
# without console
11675
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  1501
noConsoleApp:
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1502
        -del main.obj
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1503
        $(MAKE) -N -f bc.mak \
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  1504
                MAKE_BAT=$(MAKE_BAT) \
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1505
                PROJECT=$(PROJECT_NOCONSOLE) \
10418
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
  1506
                CFLAGS_APPTYPE="$(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"%(NOCONSOLE_LOGFILE)\\"\""" \
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1507
                LFLAGS_APPTYPE="$(LFLAGS_NOCONSOLE)" \
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1508
                CRT_STARTUP="$(CRT_STARTUP_NOCONSOLE)" theExe
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1509
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1510
# the executable only (internal target; needs some defines)
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1511
theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) 
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1512
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1513
# build all prerequisite packages for this package
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1514
prereq:
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1515
%(MAKE_PREREQUISITES)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1516
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1517
# a nullsoft installable delivery
11572
eda1f00c796c Install required support dirs when building the exe
Stefan Vogel <sv@exept.de>
parents: 11549
diff changeset
  1518
setup: install_%(APPLICATION).exe
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1519
10648
c7d03f9184cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10626
diff changeset
  1520
newBuildDate:
c7d03f9184cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10626
diff changeset
  1521
    del buildDate.h
c7d03f9184cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10626
diff changeset
  1522
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1523
# This uses the Nullsoft Installer Package and works in Windows only
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1524
10870
71d98ad9c151 nsi filename was wrong in bc.mak
Claus Gittinger <cg@exept.de>
parents: 10863
diff changeset
  1525
install_%(APPLICATION).exe: $(PROJECT) %(NSI_FILENAME)
71d98ad9c151 nsi filename was wrong in bc.mak
Claus Gittinger <cg@exept.de>
parents: 10863
diff changeset
  1526
        $(MAKENSIS) %(NSI_FILENAME)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1527
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1528
new:
12040
373a8b88bd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12025
diff changeset
  1529
        $(MAKE_BAT) clean
373a8b88bd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12025
diff changeset
  1530
        $(MAKE_BAT)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1531
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
  1532
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS %(ADDITIONAL_RESOURCE_TARGETS) \
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1533
        stx_RESOURCES stx_STYLES stx_BITMAPS
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1534
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1535
%(RESOURCE_RULES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1536
%(STX_RESOURCE_RULES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1537
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1538
%(APP_SOURCE_RULES)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1539
%(STX_SOURCE_RULES)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1540
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1541
%(PREREQUISITES_LIBS)      
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1542
%(SUBPROJECTS_LIBS)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1543
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1544
sources\NUL: 
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1545
        mkdir sources
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1546
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1547
show:
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1548
        @echo LFLAGS= $(LFLAGS)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1549
        @echo ALLOBJ= $(ALLOBJ)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1550
        @echo PROJECT= $(PROJECT)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1551
        @echo ALLLIB= $(ALLLIB)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1552
        @echo DEFFILE= $(DEFFILE)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1553
        @echo ALLRES= $(ALLRES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1554
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1555
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE)
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1556
        $(BCB)\BIN\$(LINKER) $(LFLAGS) $(ALLOBJ), $(PROJECT_CONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES)
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1557
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1558
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE)
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1559
        $(BCB)\BIN\$(LINKER) $(LFLAGS) $(ALLOBJ), $(PROJECT_NOCONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1560
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1561
#$(PROJECT): $(ALLOBJFILES) $(RESFILES) $(DEFFILE)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1562
#    $(BCB)\BIN\$(LINKER) @&&!!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1563
#    $(LFLAGS) +
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1564
#    $(ALLOBJ), +
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1565
#    $(PROJECT),, +
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1566
#    $(ALLLIB), +
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1567
#    $(DEFFILE), +
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1568
#    $(RESFILES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1569
#!!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1570
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1571
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1572
!!INCLUDE $(TOP)\rules\stdRules_bc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1573
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1574
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1575
# additional rules
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1576
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1577
%(APPLICATION)Win.res: %(APPLICATION)Win.rc %(APPLICATION).ico
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1578
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1579
main.obj: buildDate.h main.c bc.mak
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1580
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1581
main.c: $(TOP)\librun\main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1582
        copy $(TOP)\librun\main.c main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1583
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1584
buildDate.h: $(TOP)\librun\genDate.exe
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1585
        $(TOP)\librun\genDate.exe
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1586
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1587
librun.dll: $(TOP)\librun\librun.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1588
        copy $(TOP)\librun\librun.dll librun.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1589
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1590
cs3245.dll: $(TOP)\support\win32\borland\cs3245.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1591
        copy $(TOP)\support\win32\borland\cs3245.dll cs3245.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1592
11688
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1593
X11.dll: $(TOP)\support\win32\X11.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1594
        copy $(TOP)\support\win32\X11.dll X11.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1595
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1596
Xext.dll: $(TOP)\support\win32\Xext.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1597
        copy $(TOP)\support\win32\Xext.dll Xext.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1598
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1599
symbols.stc: $(TOP)\include\symbols.stc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1600
        copy $(TOP)\include\symbols.stc symbols.stc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1601
10313
b6ce260fe8cf #additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents: 10308
diff changeset
  1602
%(ADDITIONAL_RULES)
b6ce260fe8cf #additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents: 10308
diff changeset
  1603
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1604
clean::
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1605
        -del genDate.exe
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1606
        -del c0x32.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1607
        -del c0x32.lib
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1608
        -del buildDate.h
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1609
        -del $(PROJECT)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1610
        -del install_%(APPLICATION).exe
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1611
        -del stx.lib
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1612
        -del stx.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1613
        -del cs3245.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1614
        -del $(REQUIRED_FILES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1615
        -del main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1616
        -del *.log
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1617
        -del *.res
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1618
        -rmdir /S /Q resources
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1619
        -rmdir /S /Q objbc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1620
11675
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  1621
clobber:: clean
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  1622
        -del *.dll *.exe *.com
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1623
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1624
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1625
%(DEPENDENCIES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1626
# ENDMAKEDEPEND --- do not remove this line
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1627
'.
10424
92ee1e31165b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10423
diff changeset
  1628
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  1629
    "Modified: / 26-07-2010 / 12:26:36 / cg"
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1630
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1631
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1632
bc_dot_mak_app_source_rules
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1633
    |p|
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1634
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1635
    ^ String streamContents:[:s |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1636
        s nextPutAll:'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1637
%(APPLICATION)_SOURCES: sources\%(MODULE)\%(MODULE_PATH)\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1638
        -copy ..\*.st sources\%(MODULE)\%(MODULE_PATH)\..\*.*
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1639
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1640
'.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1641
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1642
        p := self moduleDirectory_win32 asCollectionOfSubstringsSeparatedBy:$\.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1643
        p size to:2 by:-1 do:[:len |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1644
            |part2 part1|
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1645
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1646
            part2 := (p copyTo:len) asStringWith:$\.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1647
            part1 := (p copyTo:len-1) asStringWith:$\.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1648
            s nextPutAll:'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1649
sources\%(MODULE)\',part2,'\NUL: sources\%(MODULE)\',part1,'\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1650
        mkdir sources\%(MODULE)\',part2,'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1651
'.
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1652
            s cr.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1653
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1654
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1655
        s nextPutAll:'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1656
sources\%(MODULE)\',p first,'\NUL: sources\%(MODULE)\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1657
        mkdir sources\%(MODULE)\',p first,'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1658
'.
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1659
        s cr.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1660
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1661
        "/ be careful to not include two rules for it (-> stx_source_rules).
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1662
        self module ~= 'stx' ifTrue:[
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1663
            s nextPutAll:
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1664
'sources\%(MODULE)\NUL: sources\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1665
        mkdir sources\%(MODULE)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1666
'.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1667
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1668
    ]
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1669
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1670
    "Created: / 15-05-2007 / 17:27:37 / cg"
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1671
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1672
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1673
bc_dot_mak_resource_rules
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1674
    |p|
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1675
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1676
    ^ String streamContents:[:s |
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1677
        s nextPutAll:'
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1678
%(APPLICATION)_RESOURCES: resources\%(MODULE)\%(MODULE_PATH)\NUL
11211
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  1679
        -copy ..\resources\*.rs resources\%(MODULE)\%(MODULE_PATH)\..
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  1680
        -copy ..\resources\*.style resources\%(MODULE)\%(MODULE_PATH)\..
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1681
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1682
%(APPLICATION)_BITMAPS: resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL
11211
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  1683
        -copy *.ico resources\%(MODULE)\%(MODULE_PATH)\bitmaps
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  1684
        -copy *.gif resources\%(MODULE)\%(MODULE_PATH)\bitmaps
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1685
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1686
resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL: resources\%(MODULE)\%(MODULE_PATH)\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1687
        mkdir resources\%(MODULE)\%(MODULE_PATH)\bitmaps
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1688
'.
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1689
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1690
        p := self moduleDirectory_win32 asCollectionOfSubstringsSeparatedBy:$\.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1691
        p size to:2 by:-1 do:[:len |
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1692
            |part2 part1|
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1693
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1694
            part2 := (p copyTo:len) asStringWith:$\.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1695
            part1 := (p copyTo:len-1) asStringWith:$\.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1696
            s nextPutAll:'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1697
resources\%(MODULE)\',part2,'\NUL: resources\%(MODULE)\',part1,'\NUL
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1698
        mkdir resources\%(MODULE)\',part2,'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1699
'.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1700
        ].
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1701
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1702
        s nextPutAll:'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1703
resources\%(MODULE)\',p first,'\NUL: resources\%(MODULE)\NUL
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1704
        mkdir resources\%(MODULE)\',p first,'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1705
'.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1706
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1707
        "/ be careful to not include two rules for it (-> stx_resource_rules).
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1708
        self module ~= 'stx' ifTrue:[
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1709
            s nextPutAll:
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1710
'resources\%(MODULE)\NUL: resources\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1711
        mkdir resources\%(MODULE)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1712
'.
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1713
        ].
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1714
    ]
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1715
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  1716
    "Modified: / 09-02-2007 / 16:13:43 / cg"
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1717
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1718
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1719
bc_dot_mak_stx_resource_rules
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1720
    ^ '
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1721
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1722
stx_RESOURCES: \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1723
        keyboard.rc \
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1724
        keyboardMacros.rc \
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1725
        host.rc \
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1726
        h_win32.rc \
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1727
        display.rc \
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1728
        d_win32.rc \
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1729
        libbasic_RESOURCES \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1730
        libview_RESOURCES \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1731
        libtool_RESOURCES  \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1732
        libtool2_RESOURCES
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1733
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1734
keyboard.rc: $(TOP)\projects\smalltalk\keyboard.rc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1735
        copy $(TOP)\projects\smalltalk\keyboard.rc *.*
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1736
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1737
keyboardMacros.rc: $(TOP)\projects\smalltalk\keyboardMacros.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1738
        copy $(TOP)\projects\smalltalk\keyboardMacros.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1739
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1740
host.rc: $(TOP)\projects\smalltalk\host.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1741
        copy $(TOP)\projects\smalltalk\host.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1742
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1743
h_win32.rc: $(TOP)\projects\smalltalk\h_win32.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1744
        copy $(TOP)\projects\smalltalk\h_win32.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1745
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1746
display.rc: $(TOP)\projects\smalltalk\display.rc
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1747
        copy $(TOP)\projects\smalltalk\display.rc *.*
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1748
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1749
d_win32.rc: $(TOP)\projects\smalltalk\d_win32.rc
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1750
        copy $(TOP)\projects\smalltalk\d_win32.rc *.*
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  1751
12542
361ef912b274 changed: #bc_dot_mak_stx_resource_rules
Claus Gittinger <cg@exept.de>
parents: 12540
diff changeset
  1752
stx_STYLES: resources\stx\libview\NUL resources\stx\libview\styles\NUL
361ef912b274 changed: #bc_dot_mak_stx_resource_rules
Claus Gittinger <cg@exept.de>
parents: 12540
diff changeset
  1753
        -copy $(TOP)\libview\styles\*.style resources\stx\libview\styles\*.*
361ef912b274 changed: #bc_dot_mak_stx_resource_rules
Claus Gittinger <cg@exept.de>
parents: 12540
diff changeset
  1754
        -copy $(TOP)\libview\styles\*.common resources\stx\libview\styles\*.*
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1755
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1756
stx_BITMAPS: \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1757
        libwidg_BITMAPS
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1758
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1759
libwidg_BITMAPS: resources\stx\libwidg\bitmaps\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1760
        -copy $(TOP)\libwidg\bitmaps\*.xpm resources\stx\libwidg\bitmaps\*.*
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1761
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1762
libbasic_RESOURCES: resources\stx\libbasic\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1763
        copy $(TOP)\libbasic\resources\*.rs resources\stx\libbasic\*.*
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1764
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1765
libtool_RESOURCES: resources\stx\libtool\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1766
        -copy $(TOP)\libtool\resources\*.rs resources\stx\libtool\*.*
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1767
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1768
libtool2_RESOURCES: resources\stx\libtool2\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1769
        -copy $(TOP)\libtool2\resources\*.rs resources\stx\libtool2\*.*
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1770
12542
361ef912b274 changed: #bc_dot_mak_stx_resource_rules
Claus Gittinger <cg@exept.de>
parents: 12540
diff changeset
  1771
libview_RESOURCES: resources\stx\libview\NUL 
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1772
        -copy $(TOP)\libview\resources\*.rs resources\stx\libview\*.*
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1773
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1774
libview2_RESOURCES: resources\stx\libview2\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  1775
        -copy $(TOP)\libview2\resources\*.rs resources\stx\libview2\*.*
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1776
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1777
resources\stx\libbasic\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1778
        mkdir resources\stx\libbasic
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1779
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1780
resources\stx\libtool\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1781
        mkdir resources\stx\libtool
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1782
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1783
resources\stx\libtool2\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1784
        mkdir resources\stx\libtool2
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1785
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1786
resources\stx\libview\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1787
        mkdir resources\stx\libview
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1788
12540
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  1789
resources\stx\libview\styles\NUL: resources\stx\libview\NUL
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  1790
        mkdir resources\stx\libview\styles
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  1791
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1792
resources\stx\libview2\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1793
        mkdir resources\stx\libview2
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1794
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1795
resources\stx\libwidg\bitmaps\NUL: resources\stx\libwidg\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1796
        mkdir resources\stx\libwidg\bitmaps
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1797
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1798
resources\stx\libwidg\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1799
        mkdir resources\stx\libwidg
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1800
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1801
resources\stx\NUL: resources\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1802
        mkdir resources\stx
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1803
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1804
resources\NUL:
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1805
        mkdir resources
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1806
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1807
bitmaps\NUL:
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1808
        mkdir bitmaps
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1809
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1810
doc\NUL:
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1811
        mkdir doc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1812
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1813
'.
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1814
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1815
    "Created: / 20-09-2006 / 17:36:29 / cg"
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1816
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1817
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1818
bc_dot_mak_stx_source_rules
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1819
    |libDirs|
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1820
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1821
    libDirs := self stxSourcesProjects collect:[:projectID | self moduleDirectory_win32For:projectID].
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1822
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1823
    ^ String streamContents:[:s |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1824
        s nextPutAll:'
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1825
STX_SOURCES:'.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1826
        libDirs do:[:libDir |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1827
            s nextPutAll:' '; nextPutAll:('sources\stx\',libDir,'\NUL')
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1828
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1829
        s cr.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1830
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1831
        libDirs do:[:libDir |
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1832
            s nextPutLine:('sources\stx\',libDir,'\NUL: sources\stx\NUL').
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1833
            s tab; nextPutLine:('mkdir sources\stx\',libDir).
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1834
            s tab; nextPutLine:('-copy $(TOP)\',libDir,'\*.st sources\stx\',libDir,'\*.*').
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1835
            s cr.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1836
        ].
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1837
        s nextPutLine:'sources\stx\NUL: sources\NUL'.
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1838
        s tab; nextPutLine:'mkdir sources\stx'.
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1839
        s cr.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1840
    ]
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1841
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1842
    "Created: / 15-05-2007 / 17:27:37 / cg"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1843
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1844
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1845
buildDate_dot_h
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1846
    "the template code for the buildDate.h file"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1847
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1848
^ 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1849
'#define BUILD_DATE "%(BUILDDATE)"'
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1850
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1851
    "Created: / 30-08-2006 / 19:18:34 / cg"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1852
!
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  1853
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1854
classLine_modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1855
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1856
^'_%(CLASS)_Init,'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1857
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1858
    "Modified: / 08-08-2006 / 15:46:05 / fm"
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1859
    "Created: / 19-09-2006 / 22:49:46 / cg"
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1860
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1861
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1862
classLine_modules_dot_c_extern
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1863
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1864
^'extern void _%(CLASS)_Init();'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1865
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1866
    "Modified: / 08-08-2006 / 15:46:05 / fm"
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1867
    "Created: / 19-09-2006 / 22:50:14 / cg"
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1868
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  1869
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1870
defineAPPSourceLine_nsi_for: projectID
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1871
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1872
^      
10568
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  1873
'   
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  1874
    SetOutPath "$INSTDIR\sources\',(self moduleFor: projectID),'\',(self moduleDirectory_win32For:projectID) ,'"
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  1875
    File /r "${STX_ROOT}\', (self moduleFor: projectID) ,'\',(self moduleDirectory_win32For:projectID) ,'\*.st"'
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1876
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1877
    "Created: / 15-10-2006 / 12:50:00 / cg"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1878
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1879
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  1880
defineExtenionLine_nsi_for:extension
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  1881
    "the template code for a single extenions definition line in the <appname>.nsi file"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  1882
11678
0121d26d67bf nsis file generation
Stefan Vogel <sv@exept.de>
parents: 11677
diff changeset
  1883
    ^ '  WriteRegStr HKCR ".',extension,'" "" "%(MODULE_KEY).%(PRODUCT_FILENAME).1"'
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  1884
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  1885
    "Created: / 15-10-2006 / 12:50:00 / cg"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  1886
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  1887
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1888
defineSTXSourceLine_nsi_for: projectID
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1889
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1890
^      
10572
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  1891
'  
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  1892
    SetOutPath "$INSTDIR\sources\stx\', (self moduleDirectory_win32For:projectID),'"
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  1893
    File /r "${STX_ROOT}\stx\', (self moduleDirectory_win32For:projectID),'\*.st"'
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1894
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1895
    "Created: / 15-10-2006 / 12:50:00 / cg"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1896
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  1897
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  1898
installFileLine_nsi_for:filePattern
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  1899
    "the template code for a single file-install pattern to be added to the <appname>.nsi file"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  1900
11677
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  1901
    (filePattern startsWith:'SetOutPath ') ifTrue:[
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  1902
        ^ filePattern.
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  1903
    ].        
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  1904
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  1905
    ^  '  File ', filePattern
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  1906
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  1907
    "Created: / 01-03-2007 / 20:00:20 / cg"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  1908
!
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  1909
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1910
make_dot_proto
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1911
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  1912
^
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1913
'# $','Header','$
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1914
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1915
# -------------- no need to change anything below ----------
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1916
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1917
# This makefile generates some standalone demo applications
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1918
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1919
#    make
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1920
#       generates %(APPLICATION)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1921
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1922
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1923
TOP=%(TOP)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1924
INCLUDE_TOP=$(TOP)/..
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  1925
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1926
PACKAGE=%(APPLICATION_PACKAGE)
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1927
SUBDIRS=
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1928
SUPPRESS_LOCAL_ABBREVS="yes"
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1929
NOAUTOLOAD=1
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1930
NOSUBAUTOLOAD=1
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1931
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1932
LOCALINCLUDES=-I$(INCLUDE_TOP)/stx/libbasic %(LOCAL_INCLUDES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1933
LOCALDEFINES=%(LOCAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1934
GLOBALDEFINES=%(GLOBAL_DEFINES)
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
  1935
MAIN_DEFINES=%(MAIN_DEFINES)
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1936
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1937
RCSSOURCES=Make.proto *.st
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1938
LINKSOURCES=Make.proto *.st
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1939
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1940
DELIVERBINARIES=
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1941
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  1942
target: %(BUILD_TARGET)
11381
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  1943
11422
89adf2a53bcf Make prereq before building the application
Stefan Vogel <sv@exept.de>
parents: 11381
diff changeset
  1944
all::   prereq exe
89adf2a53bcf Make prereq before building the application
Stefan Vogel <sv@exept.de>
parents: 11381
diff changeset
  1945
10803
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1946
LIBNAME=%(LIBRARY_NAME)
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1947
STCLOCALOPT=''-package=$(PACKAGE)'' -I. -H. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME)
10803
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1948
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1949
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1950
# ********** OPTIONAL: MODIFY the next line ***
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1951
# additional C-libraries that should be pre-linked with the class-objects
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1952
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1953
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1954
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1955
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1956
# ********** OPTIONAL: MODIFY the next line ***
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1957
# additional C targets or libraries should be added below
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1958
LOCAL_EXTRA_TARGETS=
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1959
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1960
OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1961
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1962
%(ADDITIONAL_DEFINITIONS)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1963
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  1964
%(ADDITIONAL_DEFINITIONS_SVN)
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  1965
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  1966
LIBLIST = $(REQUIRED_LIBS)
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  1967
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1968
# required libs:
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1969
#
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1970
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1971
REQUIRED_LIBS=%(REQUIRED_LIBS)
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1972
REQUIRED_LIBOBJS=%(REQUIRED_LIBOBJS)
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1973
REQUIRED_LINK_LIBOBJS=%(REQUIRED_LINK_LIBOBJS)
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1974
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1975
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  1976
exe:    %(APPLICATION) $(REQUIRED_SUPPORT_DIRS)
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  1977
11791
004c210a30d0 STARTUP_CLASSFILENAME is no longer needed
Stefan Vogel <sv@exept.de>
parents: 11776
diff changeset
  1978
%(APPLICATION): $(APP_DIRS_TO_MAKE) $(APP_LIBOBJS) $(OBJS)
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1979
        $(MAKE) %(APPLICATION_TYPE) \
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1980
                    TARGET=%(APPLICATION) \
12544
d518ef408c6b changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12542
diff changeset
  1981
                    APPLICATION_CLASSES="$(COMMON_CLASSES) $(UNIX_CLASSES)" \
10803
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  1982
                    APPLICATION_OBJS="$(OBJS)" \
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1983
                    APPLICATION_LIBLIST="$(REQUIRED_LIBS)" \
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1984
                    APPLICATION_LIBOBJS="$(REQUIRED_LIBOBJS)" \
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  1985
                    APPLICATION_LINK_LIBOBJS="$(REQUIRED_LINK_LIBOBJS)" \
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1986
                    STARTUP_CLASS="%(STARTUP_CLASS)" \
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1987
                    STARTUP_SELECTOR="%(STARTUP_SELECTOR)" \
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
  1988
                    MAIN_DEFINES="%(MAIN_DEFINES)"
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1989
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1990
# build all prerequisite packages for this package
11572
eda1f00c796c Install required support dirs when building the exe
Stefan Vogel <sv@exept.de>
parents: 11549
diff changeset
  1991
prereq:
10715
6481d513a0ad *** empty log message ***
fm
parents: 10714
diff changeset
  1992
%(MAKE_PREREQUISITES)
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  1993
12528
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  1994
setup:
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  1995
        @if test -d autoPackage; then \
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  1996
            makepackage; \
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  1997
        else \
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  1998
            echo "Error: make setup not yet available in linux/unix"; \
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  1999
            exit 1; \
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  2000
        fi
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  2001
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2002
SOURCEFILES: %(APPLICATION)_SOURCES \
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2003
        stx_SOURCES
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2004
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2005
%(SOURCE_RULES)
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2006
%(STX_SOURCE_RULES)
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2007
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
  2008
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS %(ADDITIONAL_RESOURCE_TARGETS) \
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2009
        stx_RESOURCES stx_STYLES stx_BITMAPS
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2010
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2011
%(RESOURCE_RULES)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2012
%(STX_RESOURCE_RULES)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2013
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2014
%(PREREQUISITES_LIBS)
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2015
%(SUBPROJECTS_LIBS)
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2016
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2017
%(ADDITIONAL_RULES)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2018
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2019
%(ADDITIONAL_RULES_SVN)
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2020
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2021
clean::
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2022
        -rm -f *.so %(APPLICATION).$(O)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2023
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
  2024
clobber:: clean
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2025
        -rm -f %(APPLICATION) *.img *.sav
11381
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2026
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2027
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2028
%(DEPENDENCIES)
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2029
# ENDMAKEDEPEND --- do not remove this line
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2030
'
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2031
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2032
    "Modified: / 09-08-2006 / 16:50:23 / fm"
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2033
    "Created: / 29-09-2006 / 23:47:07 / cg"
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2034
    "Modified: / 24-06-2009 / 21:40:26 / Jan Vrany <vranyj1@fel.cvut.cz>"
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2035
!
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2036
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2037
make_dot_proto_app_source_rules
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2038
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2039
    ^ String streamContents:[:s |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2040
        s
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2041
          cr;
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2042
          nextPutAll: '%(APPLICATION)_SOURCES: '.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2043
        self appSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2044
            s nextPutAll: ' \
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2045
        ', (self make_dot_proto_source_title_for: projectID).
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2046
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2047
        s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2048
        self appSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2049
            s nextPutAll:(self make_dot_proto_app_source_rules_for: projectID) .
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2050
            s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2051
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2052
    ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2053
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2054
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2055
make_dot_proto_app_source_rules_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2056
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2057
    | module moduleDirectory|
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2058
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2059
    module := self moduleFor: projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2060
    moduleDirectory := self moduleDirectoryFor:projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2061
    ^ String cr,
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2062
    (self make_dot_proto_source_title_for: projectID), ':
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2063
        mkdir -p sources/', module,'/', moduleDirectory, '
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2064
        cp $(TOP)/../', module, '/', moduleDirectory,'/*.st sources/', module,'/', moduleDirectory.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2065
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2066
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2067
make_dot_proto_resource_rules
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2068
    ^ String streamContents:[:s |
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2069
        s nextPutAll:'
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2070
%(APPLICATION)_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2071
        mkdir -p resources/%(MODULE)/%(MODULE_PATH)
11830
3ecc9e639f0b fix resource rules for linux
Stefan Vogel <sv@exept.de>
parents: 11801
diff changeset
  2072
        -cp ../resources/*.rs ../resources/*.style resources/%(MODULE)/%(MODULE_PATH)/..
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2073
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2074
%(APPLICATION)_BITMAPS: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2075
        mkdir -p resources/%(MODULE)/%(MODULE_PATH)/bitmaps
11830
3ecc9e639f0b fix resource rules for linux
Stefan Vogel <sv@exept.de>
parents: 11801
diff changeset
  2076
        -cp *.ico *.gif *.png resources/%(MODULE)/%(MODULE_PATH)/bitmaps
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2077
'.
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2078
    ].
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2079
!
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2080
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2081
make_dot_proto_source_title_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2082
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2083
    |packageName |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2084
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2085
    packageName := self packageNameFor: projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2086
    ^ packageName, '_SOURCES'
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2087
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2088
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2089
make_dot_proto_stx_resource_rules
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2090
    ^ '
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2091
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2092
stx_RESOURCES: \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2093
        keyboard.rc \
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2094
        keyboardMacros.rc \
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2095
        display.rc \
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2096
        libbasic_RESOURCES \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2097
        libview_RESOURCES \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2098
        libtool_RESOURCES  \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2099
        libtool2_RESOURCES
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2100
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2101
keyboard.rc: $(TOP)/projects/smalltalk/keyboard.rc
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2102
        cp $(TOP)/projects/smalltalk/keyboard.rc .
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2103
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2104
keyboardMacros.rc: $(TOP)/projects/smalltalk/keyboardMacros.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2105
        cp $(TOP)/projects/smalltalk/keyboardMacros.rc .
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2106
11029
3a3e0179cb06 No $\ as path separator in unix Make.proto files
Stefan Vogel <sv@exept.de>
parents: 11017
diff changeset
  2107
display.rc: $(TOP)/projects/smalltalk/display.rc
3a3e0179cb06 No $\ as path separator in unix Make.proto files
Stefan Vogel <sv@exept.de>
parents: 11017
diff changeset
  2108
        cp $(TOP)/projects/smalltalk/display.rc .
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2109
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2110
stx_STYLES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2111
        mkdir -p resources/stx/libview
12540
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2112
        mkdir -p resources/stx/libview/styles
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2113
        cp $(TOP)/libview/styles/*.common resources/stx/libview/styles
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2114
        cp $(TOP)/libview/styles/*.style resources/stx/libview/styles
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2115
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2116
stx_BITMAPS: \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2117
        libwidg_BITMAPS
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2118
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2119
libwidg_BITMAPS: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2120
        mkdir -p resources/stx/libwidg/bitmaps
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2121
        -cp $(TOP)/libwidg/bitmaps/*.* resources/stx/libwidg/bitmaps
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2122
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2123
libbasic_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2124
        mkdir -p resources/stx/libbasic
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2125
        -cp $(TOP)/libbasic/resources/*.* resources/stx/libbasic
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2126
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2127
libtool_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2128
        mkdir -p resources/stx/libtool
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2129
        -cp $(TOP)/libtool/resources/*.* resources/stx/libtool
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2130
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2131
libtool2_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2132
        mkdir -p resources/stx/libtool2
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2133
        -cp $(TOP)/libtool2/resources/*.* resources/stx/libtool2
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2134
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2135
libview_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2136
        mkdir -p resources/stx/libview
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2137
        -cp $(TOP)/libview/resources/*.* resources/stx/libview
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2138
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2139
libview2_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2140
        mkdir -p resources/stx/libview2
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2141
        -cp $(TOP)/libview2/resources/*.* resources/stx/libview2
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2142
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2143
bitmaps:
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2144
        mkdir -p bitmaps
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2145
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2146
doc:
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2147
        mkdir -p doc
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2148
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2149
'.
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2150
!
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2151
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2152
make_dot_proto_stx_source_rules
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2153
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2154
    ^ String streamContents:[:s |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2155
        s
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2156
          cr;
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2157
          nextPutAll: 'stx_SOURCES: '.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2158
        self stxSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2159
            s nextPutAll: '\
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2160
        ', (self make_dot_proto_source_title_for: projectID).
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2161
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2162
        s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2163
        self stxSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2164
            s nextPutAll:(self make_dot_proto_stx_source_rules_for: projectID) .
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2165
            s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2166
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2167
    ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2168
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2169
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2170
make_dot_proto_stx_source_rules_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2171
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2172
    | moduleDirectory|
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2173
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2174
    moduleDirectory := self moduleDirectoryFor:projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2175
    ^ String cr,
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2176
    (self make_dot_proto_source_title_for: projectID), ':
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2177
        mkdir -p sources/stx/', moduleDirectory, '
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2178
        cp $(TOP)/', moduleDirectory,'/*.st sources/stx/', moduleDirectory.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2179
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2180
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2181
modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2182
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2183
^ 
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2184
'/* $','Header','$
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2185
 *
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2186
 * DO NOT EDIT 
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2187
 * automagically generated from the projectDefinition: ',self name,'.
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2188
 *
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2189
 * Warning: once you modify this file, do not rerun
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2190
 * stmkmp or projectDefinition-build again - otherwise, your changes are lost.
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2191
 */
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2192
typedef void (*vf)();
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2193
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2194
%(EXTERN_INIT_NAME_LIST)
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2195
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2196
static vf modules[] = {
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2197
    %(INIT_LIST)
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2198
    (vf)0
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2199
};
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2200
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2201
vf *__modules__ = modules;
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2202
'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2203
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2204
    "Created: / 19-09-2006 / 22:36:58 / cg"
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2205
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2206
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2207
modules_dot_stx
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2208
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2209
^ 
9542
06d0781c889c *** empty log message ***
fm
parents: 9539
diff changeset
  2210
'# $','Header','$
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2211
#
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2212
# DO NOT EDIT 
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2213
# automagically generated from the projectDefinition: ',self name,'.
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2214
#
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2215
# Warning: once you modify this file, do not rerun
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2216
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2217
#
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2218
# This file is (currently) only used with win-95 / win-NT versions of STX.
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2219
# It lists the dll''s which are to be loaded at startup time.
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2220
#
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2221
# All classes loaded at startup time will be present as precompiled classes.
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2222
# Others will be autoloaded.
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2223
#
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
  2224
%(ALLPREREQUISITE_LIBS)
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2225
%(SUBPROJECT_LIBS)
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2226
'
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2227
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2228
    "Created: / 08-08-2006 / 12:26:58 / fm"
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2229
    "Modified: / 08-08-2006 / 19:32:27 / fm"
9542
06d0781c889c *** empty log message ***
fm
parents: 9539
diff changeset
  2230
    "Modified: / 16-08-2006 / 17:56:58 / User"
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2231
    "Modified: / 17-08-2006 / 20:35:38 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2232
!
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2233
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2234
packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2235
    "the template code for the <appname>.nsi file"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2236
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2237
|docDirPath|
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2238
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2239
^ 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2240
'; $','Header','$
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2241
; Script generated by ProjectDefinition.
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2242
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2243
!!define PRODUCT_NAME "%(PRODUCT_NAME)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2244
!!define PRODUCT_FILENAME "%(PRODUCT_FILENAME)"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2245
!!define PRODUCT_VERSION "%(PRODUCT_VERSION)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2246
!!define PRODUCT_PUBLISHER "%(PRODUCT_PUBLISHER)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2247
!!define PRODUCT_WEB_SITE "%(PRODUCT_WEBSITE)"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2248
!!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_FILENAME}"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2249
!!define PRODUCT_UNINST_ROOT_KEY "HKLM"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2250
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2251
!!define STX_ROOT "%(TOP)\.."
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2252
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2253
SetCompressor lzma
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2254
11351
cafc08a328aa Use MUI2
Stefan Vogel <sv@exept.de>
parents: 11211
diff changeset
  2255
!!include "MUI2.nsh"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2256
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2257
; MUI Settings
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2258
11351
cafc08a328aa Use MUI2
Stefan Vogel <sv@exept.de>
parents: 11211
diff changeset
  2259
!!define MUI_WELCOMEPAGE_TITLE_3LINES
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2260
!!define MUI_ABORTWARNING
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2261
%(SEMI_IF_ICON_EXISTS)!!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
  2262
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_ICON "%(APPLICATION_ICON).ico"
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2263
%(SEMI_IF_ICON_EXISTS)!!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
  2264
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_UNICON "%(APPLICATION_ICON).ico"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2265
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2266
; Language Selection Dialog Settings
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2267
!!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2268
!!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2269
!!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2270
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2271
; Welcome page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2272
!!insertmacro MUI_PAGE_WELCOME
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2273
; License page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2274
; !!define MUI_LICENSEPAGE_CHECKBOX
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2275
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2276
',(self hasLicenceToAcceptDuringInstallation 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2277
    ifTrue:['!!insertmacro MUI_PAGE_LICENSE $(license)']
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2278
    ifFalse:['']),'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2279
!!insertmacro MUI_PAGE_COMPONENTS
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2280
; Directory page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2281
!!insertmacro MUI_PAGE_DIRECTORY
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2282
; Instfiles page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2283
!!insertmacro MUI_PAGE_INSTFILES
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2284
; Finish page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2285
!!insertmacro MUI_PAGE_FINISH
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2286
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2287
; Uninstaller pages
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2288
!!insertmacro MUI_UNPAGE_INSTFILES
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2289
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2290
; Language files
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2291
!!insertmacro MUI_LANGUAGE "English"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2292
!!insertmacro MUI_LANGUAGE "German"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2293
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2294
; MUI end ------
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2295
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2296
',((self hasLicenceToAcceptDuringInstallation and:[(docDirPath := self docDirPath_win32) notEmptyOrNil])
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2297
    ifTrue:['
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2298
LicenseLangString license ${LANG_ENGLISH} "' , docDirPath , '\licence_en.txt"
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2299
LicenseLangString license ${LANG_GERMAN}  "' , docDirPath , '\licence_de.txt"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2300
']
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2301
    ifFalse:['']),'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2302
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2303
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2304
VIProductVersion "${PRODUCT_VERSION}.0"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2305
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2306
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2307
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "%(FILE_VERSION)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2308
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2309
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2310
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "%(LEGAL_COPYRIGHT)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2311
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2312
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2313
OutFile "%(PRODUCT_FILENAME)Setup.exe"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2314
InstallDir "%(PRODUCT_INSTALLDIR)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2315
ShowInstDetails show
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2316
ShowUnInstDetails show
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2317
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2318
Function .onInit
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2319
  !!insertmacro MUI_LANGDLL_DISPLAY
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2320
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2321
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2322
InstType Full
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2323
InstType Partial
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2324
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2325
Section "Programme" Section1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2326
  SectionIn 1 2
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2327
  SetOutPath "$INSTDIR\bin"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2328
  SetOverwrite ifnewer
10419
0412cefd7206 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10418
diff changeset
  2329
  File %(DELIVERED_EXECUTABLES)
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2330
%(COMMON_FILES_TO_INSTALL)
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2331
%(ADDITIONAL_FILES_TO_INSTALL)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2332
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2333
%(FILE_EXTENSION_DEFINITION_LINES)
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2334
  WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1" "" "%(PRODUCT_FILENAME) File"
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  2335
  WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\DefaultIcon" "" ''$INSTDIR\bin\%(NOCONSOLE_APPLICATION),0''
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2336
  WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\Shell\open" "" $(appOpen)
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
  2337
  WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\Shell\open\command" "" ''"$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" -- "%%1"''
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2338
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2339
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2340
%(SEMI_IF_NO_DOC_EXISTS)Section "Online-Documentation for %(PRODUCT_NAME)" Section2
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2341
%(SEMI_IF_NO_DOC_EXISTS)  SectionIn 1
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2342
%(SEMI_IF_NO_DOC_EXISTS)  SetOutPath "$INSTDIR\doc"
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2343
%(SEMI_IF_NO_DOC_EXISTS)  SetOverwrite ifnewer
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2344
%(SEMI_IF_NO_DOC_EXISTS)  File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\doc\*"
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2345
%(SEMI_IF_NO_DOC_EXISTS)SectionEnd
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2346
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2347
;; Section "%(PRODUCT_NAME) Libraries and Demos" Section3
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2348
;;   SectionIn 1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2349
;;   SetOutPath "$INSTDIR\lib"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2350
;;   SetOverwrite ifnewer
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2351
;; ;   File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\examples\*"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2352
;; SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2353
;; 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2354
;; Section "%(PRODUCT_NAME) Reports and Printing" Section4
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2355
;;   SectionIn 1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2356
;;   SetOutPath "$INSTDIR\reportGenerator"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2357
;;   SetOverwrite ifnewer
10801
92d1002693ed comment
Stefan Vogel <sv@exept.de>
parents: 10717
diff changeset
  2358
;; ;  File /r /x CVS "..\reportGenerator\java" "..\reportGenerator\rules" "..\reportGenerator\*.xml" "..\reportGenerator\*.xslt" "..\reportGenerator\CloseApp.exe" "..\reportGenerator\expecco.jpg"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2359
;; SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2360
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2361
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2362
%(STX_SOURCES_LINES)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2363
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2364
%(APP_SOURCES_LINES)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2365
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2366
%(ADDITIONAL_SECTIONS)
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2367
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2368
Section -AdditionalIcons
10151
8be8745d851c app must start in bin-dir, in order for resource files to be found.
Claus Gittinger <cg@exept.de>
parents: 10094
diff changeset
  2369
  SetOutPath "$INSTDIR\bin"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2370
  WriteIniStr "$INSTDIR\${PRODUCT_FILENAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2371
  CreateDirectory "$SMPROGRAMS\${PRODUCT_FILENAME}"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2372
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"
10419
0412cefd7206 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10418
diff changeset
  2373
  CreateShortCut "$DESKTOP\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2374
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" "$INSTDIR\${PRODUCT_FILENAME}.url"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2375
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" "$INSTDIR\uninst.exe"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2376
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2377
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2378
Section -Post
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2379
  WriteUninstaller "$INSTDIR\uninst.exe"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2380
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2381
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2382
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2383
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2384
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2385
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2386
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2387
LangString appOpen ${LANG_GERMAN}  "Mit %(PRODUCT_NAME) öffnen"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2388
LangString appOpen ${LANG_ENGLISH} "Open with %(PRODUCT_NAME)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2389
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2390
LangString DESC_Section1 ${LANG_ENGLISH} "Program components of %(PRODUCT_NAME)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2391
LangString DESC_Section1 ${LANG_GERMAN}  "Alle Programmkomponenten von %(PRODUCT_NAME)"
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2392
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_ENGLISH} "Online-Documentation of %(PRODUCT_NAME)"
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2393
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_GERMAN}  "Online-Dokumentation zu %(PRODUCT_NAME)"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2394
;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2395
;; LangString DESC_Section3 ${LANG_GERMAN}  "Bibliotheken und Beispielprojekte"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2396
;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2397
;; LangString DESC_Section4 ${LANG_GERMAN}  "Drucken und Report-Generierung aus Log-Dateien"
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2398
%(SEMI_IF_NO_STX_SOURCES) LangString DESC_Section3 ${LANG_ENGLISH} "Sources of ST/X (Base-System)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2399
%(SEMI_IF_NO_STX_SOURCES) LangString DESC_Section3 ${LANG_GERMAN}  "Quellcode von ST/X (Basis-System)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2400
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_ENGLISH} "Sources of %(PRODUCT_NAME)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2401
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_GERMAN}  "Quellcode von %(PRODUCT_NAME)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2402
%(ADDITIONAL_SECTIONS_DESCRIPTIONS)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2403
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2404
!!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2405
  !!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2406
%(SEMI_IF_NO_DOC_EXISTS)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2407
%(SEMI_IF_NO_STX_SOURCES)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2408
%(SEMI_IF_NO_APP_SOURCES)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2409
%(ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2410
!!insertmacro MUI_FUNCTION_DESCRIPTION_END
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2411
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2412
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2413
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2414
Function un.onUninstSuccess
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2415
  HideWindow
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2416
  MessageBox MB_ICONINFORMATION|MB_OK "%(PRODUCT_NAME) wurde erfolgreich deinstalliert"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2417
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2418
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2419
Function un.onInit
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2420
!!insertmacro MUI_UNGETLANGUAGE
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2421
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Möchten Sie %(PRODUCT_NAME) und alle seine Komponenten deinstallieren?" IDYES +2
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2422
  Abort
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2423
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2424
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2425
Section Uninstall
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2426
  Delete "$INSTDIR\${PRODUCT_FILENAME}.url"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2427
  Delete "$INSTDIR\uninst.exe"
10626
e6ce341ac09b *** empty log message ***
fm
parents: 10575
diff changeset
  2428
%(DIRECTORY_UNINSTALL_LINES)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2429
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2430
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2431
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2432
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2433
  Delete "$DESKTOP\%(APPLICATION).lnk"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2434
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2435
  RMDir "$SMPROGRAMS\${PRODUCT_FILENAME}"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2436
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2437
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2438
  DeleteRegKey HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2439
%(FILE_EXTENSION_UNDEFINITION_LINES)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2440
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2441
  SetAutoClose true
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2442
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2443
'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2444
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2445
     bosch_dapasx_application packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2446
     bosch_dapasx_application generateFile:'dapasx.nsi'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2447
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2448
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2449
    "Modified: / 09-08-2006 / 15:10:57 / fm"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2450
    "Created: / 14-09-2006 / 21:09:18 / cg"
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2451
    "Modified: / 15-05-2007 / 17:22:37 / cg"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2452
!
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2453
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2454
packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2455
    "the template code for the <appname>.rc file"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2456
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2457
^ 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2458
'//
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2459
// DO NOT EDIT 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2460
// automagically generated from the projectDefinition: ',self name,'.
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2461
//
11376
ba75adbf6a62 splash file definition
Claus Gittinger <cg@exept.de>
parents: 11351
diff changeset
  2462
#define IDR_MAINFRAME   128
ba75adbf6a62 splash file definition
Claus Gittinger <cg@exept.de>
parents: 11351
diff changeset
  2463
#define IDR_SPLASH      129
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2464
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2465
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2466
#pragma code_page(1252)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2467
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2468
%(ICONDEFINITION_LINE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2469
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2470
VS_VERSION_INFO VERSIONINFO
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2471
  FILEVERSION     %(FILE_VERSION_COMMASEPARATED)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2472
  PRODUCTVERSION  %(PRODUCT_VERSION_COMMASEPARATED)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2473
//  FILEFLAGSMASK 0x3fL
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2474
  FILEFLAGSMASK   VS_FF_DEBUG | VS_FF_PRERELEASE
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2475
  FILEFLAGS       VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2476
  FILEOS          VOS_NT_WINDOWS32
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2477
  FILETYPE        %(FILETYPE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2478
  FILESUBTYPE     VS_USER_DEFINED
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2479
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2480
BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2481
  BLOCK "StringFileInfo"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2482
  BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2483
    BLOCK "040904E4"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2484
    BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2485
      VALUE "CompanyName", "%(COMPANY_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2486
      VALUE "FileDescription", "%(FILE_DESCRIPTION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2487
      VALUE "FileVersion", "%(FILE_VERSION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2488
      VALUE "InternalName", "%(INTERNAL_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2489
%(LEGAL_COPYRIGHT_LINE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2490
      VALUE "ProductName", "%(PRODUCT_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2491
      VALUE "ProductVersion", "%(PRODUCT_VERSION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2492
      VALUE "ProductDate", "%(PRODUCT_DATE)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2493
    END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2494
  END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2495
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2496
  BLOCK "VarFileInfo"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2497
  BEGIN                               //  Language   |    Translation
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2498
    VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2499
  END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2500
END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2501
'
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2502
    "
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2503
     stx_libbasic3 packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2504
     stx_libbasic3 generate_packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2505
    "
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2506
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2507
    "Modified: / 09-08-2006 / 15:10:57 / fm"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2508
    "Created: / 30-08-2006 / 18:41:47 / cg"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2509
!
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2510
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2511
preRequisiteLine_bc_dot_mak
11099
d410821fa987 bc.mak prereq generation - need space when defining environ variable
Stefan Vogel <sv@exept.de>
parents: 11082
diff changeset
  2512
d410821fa987 bc.mak prereq generation - need space when defining environ variable
Stefan Vogel <sv@exept.de>
parents: 11082
diff changeset
  2513
    "Note: the trailing blank in 'CFLAGS_LOCAL=$(GLOBALDEFINES) '
d410821fa987 bc.mak prereq generation - need space when defining environ variable
Stefan Vogel <sv@exept.de>
parents: 11082
diff changeset
  2514
     is required!!"
d410821fa987 bc.mak prereq generation - need space when defining environ variable
Stefan Vogel <sv@exept.de>
parents: 11082
diff changeset
  2515
10381
9118d27357a9 make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents: 10379
diff changeset
  2516
    ^
12960
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2517
'%(FILE_NAME).dll: %(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2518
        copy %(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll *.*
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2519
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2520
%(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll:
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2521
        pushd %(MODULE_DIRECTORY) & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2522
'
9900
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
  2523
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2524
    "Modified: / 26-07-2010 / 12:26:10 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2525
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2526
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2527
preRequisiteLine_make_dot_proto
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2528
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2529
    "Note: the trailing blank in 'CFLAGS_LOCAL=$(GLOBALDEFINES) '
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2530
     is required!!"
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2531
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2532
    ^
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2533
'%(FILE_NAME).so: %(MODULE_DIRECTORY)/%(FILE_NAME).so
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2534
        cp %(MODULE_DIRECTORY)/%(FILE_NAME).so .
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2535
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2536
%(MODULE_DIRECTORY)/%(FILE_NAME).so:
11776
17be54630802 Add GLOBALDEFINE in prereq lines
Stefan Vogel <sv@exept.de>
parents: 11696
diff changeset
  2537
        cd %(MODULE_DIRECTORY) && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2538
'
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2539
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2540
    "Modified: / 09-02-2007 / 16:22:47 / cg"
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2541
!
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2542
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2543
subProjectLine_bc_dot_mak
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2544
12960
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2545
^'%(LIBRARY_NAME).dll: $(TOP)\..\%(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2546
        copy $(TOP)\..\%(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll *.*
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2547
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2548
$(TOP)\..\%(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll:
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2549
        cd $(TOP)\..\%(PATH_TO_SUB_PROJECT)
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2550
        $(MAKE_BAT)
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2551
        -cd $(TOP)\..\%(PATH_TO_MYPROJECT)
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2552
'
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2553
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2554
    "Modified: / 26-07-2010 / 12:26:01 / cg"
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2555
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2556
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2557
undefineExtenionLine_nsi_for:extension
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2558
    "the template code for a single extenions undefinition line in the <appname>.nsi file"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2559
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2560
^ 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2561
'  DeleteRegKey HKCR ".',extension,'"'
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2562
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2563
    "Created: / 15-10-2006 / 12:51:00 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2564
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2565
9813
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2566
!ApplicationDefinition class methodsFor:'queries'!
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2567
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2568
canHaveExtensions
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2569
    "return true, if this class allows extensions from other packages.
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2570
     Private classes, namespaces and projectDefinitions dont allow this"
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2571
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2572
    ^ self == ApplicationDefinition
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2573
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2574
    "
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2575
     Smalltalk allClasses select:[:each | each canHaveExtensions not]
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2576
    "
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2577
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2578
    "Created: / 30-08-2006 / 15:29:49 / cg"
12332
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  2579
!
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  2580
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  2581
projectType
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  2582
    ^ self isGUIApplication
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  2583
        ifTrue:[ GUIApplicationType  ]
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  2584
        ifFalse:[ NonGUIApplicationType ]
9813
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2585
! !
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  2586
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2587
!ApplicationDefinition class methodsFor:'sanity checks'!
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2588
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2589
validateDescription
9958
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  2590
    super validateDescription.
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  2591
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2592
    #(
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2593
        startupClassName
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2594
"/        startupSelector
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2595
    ) do:[:sel |
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
  2596
        (self theMetaclass includesSelector:sel) ifFalse:[
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2597
            Dialog 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2598
                warn:('The %1-method is missing from the description %2!!' 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2599
                        bindWith:sel allBold
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2600
                        with:self name allBold).
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2601
            AbortSignal raise.
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2602
        ].
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2603
        (Error catch:[ self perform:sel ]) ifTrue:[
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2604
            Dialog 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2605
                warn:('The %1-method needs to be edited in the description %2!!' 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2606
                        bindWith:sel allBold
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2607
                        with:self name allBold).
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2608
            AbortSignal raise.
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2609
        ].
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2610
    ].
9958
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  2611
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  2612
    "Modified: / 19-09-2006 / 20:17:38 / cg"
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2613
! !
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  2614
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2615
!ApplicationDefinition class methodsFor:'testing'!
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2616
12311
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  2617
isAbstract
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  2618
    ^ self == ApplicationDefinition
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  2619
!
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  2620
9669
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  2621
isApplicationDefinition
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  2622
    ^ self ~~ ApplicationDefinition
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  2623
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  2624
    "Created: / 23-08-2006 / 15:17:38 / cg"
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  2625
!
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  2626
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2627
isProjectDefinition
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2628
    ^ self ~~ ApplicationDefinition
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2629
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2630
    "Created: / 17-08-2006 / 14:11:56 / cg"
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2631
! !
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  2632
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2633
!ApplicationDefinition class methodsFor:'documentation'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2634
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2635
version
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2636
    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.160 2010-07-26 10:27:10 cg Exp $'
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2637
!
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2638
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2639
version_CVS
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2640
    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.160 2010-07-26 10:27:10 cg Exp $'
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2641
! !