ApplicationDefinition.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 22 Sep 2015 16:28:42 +0100
branchjv
changeset 18759 c1217211909c
parent 18506 de28c10ed519
child 18990 97840ca52961
permissions -rw-r--r--
Changed identification strings to contain jv-branch ...to make explicit that this distribution is not the official one used by eXept and therefore that eXept is not to be blamed in case of any problem.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17578
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
     1
"{ Encoding: utf8 }"
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
     2
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     3
"
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     4
 COPYRIGHT (c) 2006 by eXept Software AG
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     5
              All Rights Reserved
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     6
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     7
 This software is furnished under a license and may be used
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     8
 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
     9
 inclusion of the above copyright notice.   This software may not
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    10
 be provided or otherwise made available to, or used by, any
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    11
 other person.  No title to or ownership of the software is
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    12
 hereby transferred.
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    13
"
9671
cb20763db715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9669
diff changeset
    14
"{ Package: 'stx:libbasic' }"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    15
17578
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
    16
"{ NameSpace: Smalltalk }"
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
    17
9567
dff3e4bd9de2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
    18
ProjectDefinition subclass:#ApplicationDefinition
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
    19
	instanceVariableNames:''
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
    20
	classVariableNames:''
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
    21
	poolDictionaries:''
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
    22
	category:'System-Support-Projects'
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    23
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
    24
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    25
!ApplicationDefinition class methodsFor:'documentation'!
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    26
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    27
copyright
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    28
"
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    29
 COPYRIGHT (c) 2006 by eXept Software AG
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    30
              All Rights Reserved
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    31
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    32
 This software is furnished under a license and may be used
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    33
 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
    34
 inclusion of the above copyright notice.   This software may not
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    35
 be provided or otherwise made available to, or used by, any
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    36
 other person.  No title to or ownership of the software is
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    37
 hereby transferred.
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    38
"
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    39
!
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    40
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    41
documentation
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    42
"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    43
    subclasses provide the info on the contents of a package/project and
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    44
    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
    45
    Actually, subclasses MUST be subclasses of the two abstract classes LibraryDefinition or
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    46
    ApplicationDefinition. These two know how to generate all required help files for the
15218
d85d144cd661 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15217
diff changeset
    47
    make/build/load process.
d85d144cd661 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15217
diff changeset
    48
    File creation is driven by file templates which are expanded using strings from the file mappings.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    49
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    50
    Concrete definition classes MUST redefine:
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    51
        classNamesAndAttributes
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    52
                                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
    53
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    54
        extensionMethodNames
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    55
                                list of extension methods
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    56
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    57
        startupClassName / startupSelector
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    58
                                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
    59
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    60
        buildTarget             name of the generated exe-file
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
        
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    63
    should redefine:
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    64
        preRequisites           list of required packages
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    65
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    66
        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
    67
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    68
        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
    69
                                as attribute of a .dll or .exe
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
        description             short description; 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
        legalCopyright          copyright message; 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
        productName             product name; shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    76
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    77
        applicationName         app name; shown by windows explorer
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
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    80
    might redefine:    
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    81
        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
    82
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    83
        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
    84
                                (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
    85
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    86
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
    87
    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
    88
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    89
    [author:]
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    90
        Felix Madrid
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    91
        Claus Gittinger
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    92
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    93
    [see also:]
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    94
        stx_projects_smalltalk
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    95
        stx_libbasic
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    96
        stx_libbasic2
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    97
"
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    98
! !
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    99
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   100
!ApplicationDefinition class methodsFor:'accessing'!
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   101
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   102
appSourcesProjects
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   103
    "Returns only the application projects (which are included in the application module)"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   104
14841
308ec8e1c88d class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14814
diff changeset
   105
    ^ self effectivePreRequisites select:[:each | 
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   106
        (self moduleFor: each) = self module
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
        bosch_dapasx_application appSourcesProjects
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   111
    "
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   112
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   113
14229
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   114
startupClass
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   115
    "the class, but onlz of loaded"
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   116
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   117
    |cls|
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   118
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   119
    Error 
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   120
        handle:[:ex | ] 
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   121
        do:[
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   122
            |clsName|
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   123
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   124
            clsName := self startupClassName.
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   125
            cls := Smalltalk classNamed:clsName.
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   126
        ].
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   127
    ^ cls
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   128
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   129
    "Created: / 20-07-2012 / 16:37:36 / cg"
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   130
!
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   131
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   132
stxSourcesProjects
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   133
    "Returns only the required STX projects (which are included in the STX module)"
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   134
14841
308ec8e1c88d class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14814
diff changeset
   135
    ^ self effectivePreRequisites select:[:each | 
308ec8e1c88d class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14814
diff changeset
   136
        (self moduleFor: each) = (self moduleFor: #stx)
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   137
    ].
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   138
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   139
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   140
        bosch_dapasx_application stxSourcesProjects
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   141
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   142
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   143
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   144
    #(
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   145
       'libbasic' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   146
       'libbasic2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   147
       'libcomp' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   148
       'libview' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   149
       'libview2'
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   150
       'libwidg' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   151
       'libwidg2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   152
       'libtool' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   153
       'libtool2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   154
       'libhtml' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   155
       'libui'
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   156
    )
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   157
    "
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   158
! !
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   159
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   160
!ApplicationDefinition class methodsFor:'code generation'!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   161
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   162
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition
15053
dd4e354a7a78 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14989
diff changeset
   163
    "redefined to add application stuff, such as definitions for the app-icon, 
dd4e354a7a78 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14989
diff changeset
   164
     startup class and installation directory"
dd4e354a7a78 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14989
diff changeset
   165
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   166
    super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   167
14884
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   168
    #(
14976
b7e5bc27c5eb class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14958
diff changeset
   169
        (applicationIconFileName applicationIconFileName_code 'description - project information')
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
   170
        "/ Not needed, done in ProjectDefinition>>forEachMethodsCodeToCompileDo:ignoreOldDefinition:
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
   171
        "/ (subProjects subProjects_code 'description')
14884
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   172
        (productInstallDirBaseName productInstallDirBaseName_code 'description - project information')
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   173
        (startupClassName startupClassName_code 'description - startup')
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   174
        (startupSelector startupSelector_code 'description - startup')
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   175
    ) triplesDo:[:selector :codeMethodSelector :category|
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   176
        (self class includesSelector:selector) ifFalse:[
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   177
            aTwoArgBlock
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   178
                value: (self perform:codeMethodSelector)
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   179
                value: category.
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   180
        ].
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   181
    ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   182
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   183
    "Created: / 10-08-2006 / 16:35:47 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   184
    "Modified: / 30-08-2006 / 19:03:48 / cg"
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
   185
    "Modified: / 25-11-2013 / 13:51:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   186
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   187
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   188
startupClassName_code
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   189
    |classes startClasses mainClasses appClasses|
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   190
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   191
    classes := self classNamesAndAttributes 
16336
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   192
                collect:[:nmOrPair | 
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   193
                            |nm| 
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   194
                            nm := nmOrPair isArray ifTrue:[nmOrPair first] ifFalse:[nmOrPair].
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   195
                            Smalltalk classNamed:nm
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   196
                        ] 
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   197
                thenSelect:[:cls | cls notNil and:[cls isProjectDefinition not ]].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   198
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   199
    mainClasses := classes select:[:each | each theMetaclass includesSelector:#main ].
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   200
    mainClasses size == 1 ifTrue:[
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   201
        ^ self startupClassName_codeFor:(mainClasses first name)
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   202
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   203
    mainClasses isEmpty ifTrue:[
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   204
        startClasses := classes select:[:each | each theMetaclass includesSelector:#start ].
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   205
        startClasses size == 1 ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   206
            ^ self startupClassName_codeFor:(startClasses first name)
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   207
        ].
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   208
        startClasses isEmpty ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   209
            appClasses := classes select:[:each | each isSubclassOf:ApplicationModel ].
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   210
            appClasses size == 1 ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   211
                ^ self startupClassName_codeFor:(appClasses first name)
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   212
            ].
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   213
        ]
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   214
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   215
10000
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
'startupClassName
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   218
    "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
   219
     Usually, the name of a subclass of StandAloneStartup."
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   220
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   221
    self error:''undefined startupClass''.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   222
    ^ ''<name of class here>''
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   223
'
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   224
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   225
    "Modified: / 27-12-2006 / 11:43:34 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   226
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   227
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   228
startupClassName_codeFor:aClassName
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   229
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   230
'startupClassName
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   231
    "the class that starts the show in its startupSelector method"
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   232
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   233
    ^ ''',aClassName,'''
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   234
'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   235
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   236
    "Created: / 05-09-2006 / 13:40:32 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   237
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   238
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   239
startupSelector_code
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   240
    "generate a the code that answers the startupSelector.
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   241
     try #open and #start."
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   242
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   243
    |clsName cls sel|
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   244
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   245
    Error 
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   246
        handle:[:ex | ] 
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   247
        do:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   248
            clsName := self startupClassName.
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   249
            cls := Smalltalk classNamed:clsName.
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   250
        ].
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   251
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   252
    sel := #start.
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   253
    cls notNil ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   254
        (cls respondsTo:#open) ifTrue:[
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   255
            sel := #open
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   256
        ].
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   257
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   258
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   259
    ^ self startupSelector_codeFor:sel
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   260
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   261
    "Modified: / 27-12-2006 / 11:45:38 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   262
!
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
startupSelector_codeFor:aSelector
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   265
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   266
'startupSelector
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   267
    "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
   268
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   269
    ^ #''',aSelector,'''        
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   270
'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   271
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   272
    "Created: / 05-09-2006 / 13:41:01 / cg"
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   273
    "Modified: / 15-12-2006 / 14:10:11 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   274
!
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
subProjects_code        
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   277
    |subProjects|
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   278
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   279
    subProjects := 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   280
        (self siblingsAreSubProjects)
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   281
            ifTrue:[ self searchForSiblingProjects ]
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   282
            ifFalse:[ self searchForSubProjects ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   283
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   284
    subProjects removeAll: self excludedFromSubProjects.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   285
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   286
    ^ String streamContents:[:s |
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   287
        s nextPutLine:'subProjects'.
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   288
        s nextPutLine:'    "list packages which are known as subprojects.'.
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   289
        s nextPutLine:'     This method is generated automatically; however, when generating automatically,'. 
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   290
        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
   291
        s nextPutLine:''.
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   292
        s nextPutLine:'    ^ #('.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   293
        subProjects do:[:eachPackageID |    
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   294
            s nextPutLine:eachPackageID asString storeString
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   295
        ].      
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   296
        s nextPutLine:')'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   297
    ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   298
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   299
    "
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   300
     bosch_dapasx subProjectsGeneratedString
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   301
     stx_goodies subProjectsGeneratedString
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   302
    "
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   303
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   304
    "Modified: / 08-08-2006 / 19:24:34 / fm"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   305
    "Created: / 17-08-2006 / 21:26:51 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   306
! !
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   307
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   308
!ApplicationDefinition class methodsFor:'defaults'!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   309
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   310
buildTarget
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   311
    "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
   312
     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
   313
     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
   314
     Here, 'ALL' is returned.
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   315
     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
   316
     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
   317
     put often build new executables..."
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   318
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   319
     ^ 'ALL'
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   320
!
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   321
11801
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   322
extraTargets
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   323
    "extra targets to be built when creating the exe"
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   324
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   325
     self needResources ifTrue:[
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   326
        ^ #('RESOURCEFILES')
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   327
     ].
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   328
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   329
     ^ #()
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   330
!
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   331
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   332
guiClassFileNames_unix
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   333
    ^ self guiClasses_unix 
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   334
        collect:[:cls | (cls classBaseFilename asFilename withSuffix:'so') baseName].
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   335
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   336
    "Created: / 14-09-2006 / 18:13:22 / cg"
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   337
    "Modified: / 12-10-2006 / 15:50:39 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   338
!
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   339
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   340
guiClassFileNames_win32
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   341
    ^ self guiClasses_win32 
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   342
        collect:[:cls | (cls classBaseFilename asFilename withSuffix:'dll') baseName].
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   343
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   344
    "Created: / 07-09-2006 / 17:23:13 / cg"
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   345
    "Modified: / 12-10-2006 / 15:50:42 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   346
!
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   347
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   348
guiClasses_unix
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   349
    ^ #()
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   350
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   351
    "Created: / 14-09-2006 / 18:12:58 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   352
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   353
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   354
guiClasses_win32
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   355
    ^ #()
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   356
    "/ ^ Array with:XWorkstation
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   357
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   358
    "Created: / 07-09-2006 / 17:22:27 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   359
    "Modified: / 14-09-2006 / 18:12:35 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   360
!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   361
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   362
needResources
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   363
    "answer true, if this application
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   364
     needs resources to be installed. This is normally true.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   365
     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
   366
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   367
    ^ true 
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   368
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   369
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   370
!ApplicationDefinition class methodsFor:'description'!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   371
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   372
additionalFilesToInstall_unix
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   373
    "application-specific files to be installed.
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   374
     Each entry gives a pattern of a file to be copied and a destination directory.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   375
     Can be redefined in subclasses."
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   376
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   377
    ^ #()
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   378
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   379
    "Created: / 01-03-2007 / 20:02:21 / cg"
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   380
!
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   381
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   382
additionalFilesToInstall_win32
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   383
    "application-specific files to be installed.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   384
     Each line defines an entry in the NSI file, for a pattern of a file to be copied.
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   385
     Can be redefined in subclasses."
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   386
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   387
    ^ #()
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   388
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   389
    "Created: / 01-03-2007 / 20:02:21 / cg"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   390
!
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   391
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   392
additionalResourceTargets
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   393
    "application-specific additional resource targets to be invoked.
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   394
     Can be redefined in subclasses."
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   395
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   396
    ^ #()
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   397
!
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   398
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   399
applicationIconFileName
11073
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   400
    "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
   401
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   402
     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
   403
     nil, if they dont have one.
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   404
     We NO LONGER SUPPORT THE PREVIOUS APPNAME-DEFAULT,
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   405
     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
   406
15071
1bea05335b71 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15053
diff changeset
   407
    ^ self subclassResponsibility.
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   408
!
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   409
11082
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   410
applicationInstallIconFileName
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   411
    "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
   412
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   413
     Default is the same as the application icon"
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   414
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   415
    ^ self applicationIconFileName.
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   416
!
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   417
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   418
applicationName
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   419
    "answer the name of the application.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   420
     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
   421
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   422
     Subclasses may redefine this"
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   423
10420
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   424
    ^ self applicationNameFromPackage
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   425
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   426
    "
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   427
     bosch_dapasx_application applicationName     
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   428
     stx_projects_smalltalk applicationName     
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   429
    "
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   430
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   431
    "Created: / 08-08-2006 / 20:25:39 / fm"
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   432
    "Modified: / 30-08-2006 / 19:29:25 / cg"
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   433
!
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   434
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   435
documentExtensions
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   436
    "list extensions which should be registered with the application.
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   437
     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
   438
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   439
    ^ #()
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   440
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   441
    "Created: / 15-10-2006 / 12:44:14 / cg"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   442
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   443
14814
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   444
includedInPreRequisites
17578
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
   445
    "list packages which are to be implicitely included in the prerequisites list,
14814
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   446
     even if not found by the automatic search.
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   447
     Redefine this, if classes from other packages are referred to via reflection
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   448
     or by constructing names dynamically (i.e. the search cannot find it)"
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   449
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   450
    ^ self isGUIApplication ifTrue:[
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   451
        #(
14867
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   452
            #'stx:libcomp'   "/ to read the rc file
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   453
            #'stx:libbasic2' "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   454
            #'stx:libview'   "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   455
            #'stx:libview2'  "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   456
            #'stx:libwidg'   "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   457
            #'stx:libwidg2'  "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   458
            #'stx:libui'     "/ UI framework
14814
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   459
        )
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   460
    ] ifFalse:[
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   461
        #(
14867
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   462
            #'stx:libcomp'   "/ to read the rc file
14814
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   463
        )
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   464
    ].
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   465
!
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   466
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   467
initiallyLoadedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   468
   "Prereqisites packages that are not to be loaded at application startup, but
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   469
    that maybe loaded later by the application.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   470
    This is used for a fast startup in case that the application wants to only inform
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   471
    an already running application to e.g. open an additional window."
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   472
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   473
    ^ nil       "the default, nil means: all prerequisites should be loaded initially"
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   474
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   475
"/    ^ #(
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   476
"/        #'stx:libbasic'  
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   477
"/        #'stx:libbasic2'   
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   478
"/        #'stx:libcomp'
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   479
"/    )
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   480
!
Stefan Vogel <sv@exept.de>
parents: 12984
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.
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   528
     Redefine to return true, if you want one always i.e. to generate both)."
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
   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
14383
sr
parents: 14379
diff changeset
   556
runAsAdmin
sr
parents: 14379
diff changeset
   557
    "WINDOWS only!! Optionally used by NSI installer.
sr
parents: 14379
diff changeset
   558
     defines a registry entry,
sr
parents: 14379
diff changeset
   559
     which sets RUNASADMIN file attribute to the noconsole application exe"
sr
parents: 14379
diff changeset
   560
    ^ false
sr
parents: 14379
diff changeset
   561
sr
parents: 14379
diff changeset
   562
    "Created: / 12-10-2012 / 10:19:56 / sr"
sr
parents: 14379
diff changeset
   563
!
sr
parents: 14379
diff changeset
   564
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
   565
startupClassName
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   566
    "The name of the class which provides the entry point for the application."
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   567
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   568
    self subclassResponsibility
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   569
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   570
    "Modified: / 17-08-2006 / 20:00:22 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   571
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   572
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
   573
startupSelector
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   574
    "The name of the entry point method (in startUpClass) used to start the application."
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   575
10379
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   576
    ^ #start
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   577
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   578
    "Modified: / 17-08-2006 / 20:01:00 / cg"
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
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   581
!ApplicationDefinition class methodsFor:'description - private'!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   582
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   583
applicationNameConsole
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   584
    ^ self applicationName, '.com'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   585
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   586
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   587
applicationNameFromPackage
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   588
    "answer the name of the application.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   589
     This is also the name of the generated .exe file.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   590
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   591
     Subclasses may redefine this"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   592
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   593
    |m path|
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   594
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   595
    m := self moduleDirectory.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   596
    path := m subStrings:$/.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   597
    path last = 'application' ifTrue:[
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   598
        path size > 1 ifTrue:[
15166
6dd961ea0806 Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents: 15071
diff changeset
   599
            path := path copyButLast:1.
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   600
        ].
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   601
    ].
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   602
    ^ path last
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   603
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   604
    "
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   605
     bosch_dapasx_application applicationName     
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   606
     stx_projects_smalltalk applicationName     
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   607
     alspa_batch_application applicationName    
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   608
    "
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   609
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   610
    "Created: / 08-08-2006 / 20:25:39 / fm"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   611
    "Modified: / 05-09-2012 / 10:08:44 / cg"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   612
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   613
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   614
applicationNameNoConsole
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   615
    ^ self applicationName , '.exe'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   616
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   617
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   618
applicationPackage
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   619
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   620
    ^self module, ':', self applicationNameFromPackage
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   621
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   622
    "
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   623
     bosch_dapasx_application applicationPackage     
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   624
     stx_projects_smalltalk applicationPackage     
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   625
     alspa_batch_application applicationPackage            
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   626
    "
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   627
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   628
    "Created: / 08-08-2006 / 20:25:39 / fm"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   629
    "Modified: / 30-08-2006 / 19:29:25 / cg"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   630
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   631
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   632
commonFilesToInstall_unix
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   633
    "files installed for applications.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   634
     Each entry gives a pattern of a file to be copied and a destination directory.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   635
     Do not redefine - see additionalFilesToInstall for a redefinable variant of this"
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   636
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   637
    ^ #(
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   638
        ('*.so'         'bin')
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   639
        ('symbols.stc'  'bin')
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   640
        ('*.stx'        'bin')
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   641
        ('*.rc'         'bin')
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   642
        ('resources'    'bin')
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   643
    )
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   644
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   645
    "Created: / 01-03-2007 / 20:05:40 / cg"
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   646
!
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   647
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   648
commonFilesToInstall_win32
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   649
    "files installed for applications - used only for NSIS installer under WIN32.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   650
     Each line defines an entry in the NSI file, for a pattern of a file to be copied.
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   651
     Do not redefine - see additionalFilesToInstall for a redefinable variant of this"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   652
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   653
    ^ #(
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   654
        '"*.dll"'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   655
        '"symbols.stc"'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   656
        '"*.stx"'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   657
        '"*.rc"'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   658
        '/r /x CVS /x ".*" resources'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   659
    )
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   660
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   661
    "Created: / 01-03-2007 / 20:05:40 / cg"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   662
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   663
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   664
docDirPath_unix
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   665
    "path relative to my dir to the documentation - or nil"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   666
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   667
    ^ self docDirPath replaceAll:$\ with:$/.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   668
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   669
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   670
docDirPath_win32
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   671
    "path relative to my dir to the documentation - or nil"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   672
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   673
    ^ self docDirPath replaceAll:$/ with:$\.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   674
! !
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   675
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   676
!ApplicationDefinition class methodsFor:'description - project information'!
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   677
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   678
applicationType 
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   679
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   680
    ^self isGUIApplication
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   681
        ifTrue:['GUI_APPLICATION']
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   682
        ifFalse:['NON_GUI_APPLICATION']
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   683
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   684
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   685
description
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   686
    "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
   687
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   688
    self module = 'stx' ifTrue:[
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   689
        ^ 'Smalltalk/X Application'
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   690
    ].
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   691
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
   692
    ^ 'Application'
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   693
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   694
    "Created: / 17-08-2006 / 20:52:48 / cg"
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
   695
    "Modified: / 18-08-2006 / 16:16:01 / cg"
9889
c480dd24d0b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9886
diff changeset
   696
!
c480dd24d0b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9886
diff changeset
   697
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   698
docDirPath
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   699
    "path relative to my dir to the documentation - or empty."
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   700
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   701
    ^ ''
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   702
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   703
    "Created: / 20-09-2006 / 17:58:40 / cg"
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   704
!
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   705
9900
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   706
hasLicenceToAcceptDuringInstallation
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   707
    ^ false
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   708
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   709
    "Created: / 14-09-2006 / 22:34:00 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   710
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   711
c897f2e72672 initial checkin
fm
parents:
diff changeset
   712
!ApplicationDefinition class methodsFor:'file generation'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   713
9854
d1ae554dd112 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9835
diff changeset
   714
basicFileNamesToGenerate
10863
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   715
    "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
   716
     package"
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   717
    
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   718
    |dict|
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   719
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   720
    dict := super basicFileNamesToGenerate.
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   721
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   722
    dict 
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   723
        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
   724
        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
   725
        at:self rcFilename      put:#'generate_packageName_dot_rc';
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   726
        at:self nsiFilename     put:#'generate_packageName_dot_nsi';
14061
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   727
        at:self apspecFilename  put:#'generate_autopackage_default_dot_apspec'; "/ for linux
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   728
        at:'builder/baseline.rbspec'  put:#'generate_builder_baseline_dot_rbspec';
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   729
        at:'builder/package.deps.rake' put: #'generate_package_dot_deps_dot_rake'.
10863
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   730
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   731
    ^ dict.
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   732
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   733
    "Modified: / 21-12-2010 / 11:01:27 / cg"
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   734
    "Modified: / 26-02-2011 / 15:43:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9623
474878a8887e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9614
diff changeset
   735
!
474878a8887e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9614
diff changeset
   736
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   737
generateFile:filename
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   738
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   739
   (filename = 'builder/baseline.rpspec') ifTrue:[
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   740
        ^ self generate_builder_baseline_dot_rbspec
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   741
   ].
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   742
    (filename = 'app.nsi' or:[filename = self nsiFilename]) ifTrue:[
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   743
        ^ self generate_packageName_dot_nsi
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   744
    ].
14061
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   745
    (filename = 'autopackage/default.apspec' or:[filename = self apspecFilename]) ifTrue:[
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   746
        "/ for linux
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   747
        ^ self generate_autopackage_default_dot_apspec
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   748
    ].
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   749
    ^ super generateFile:filename
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   750
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   751
    "Modified: / 21-12-2010 / 11:00:59 / cg"
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   752
    "Modified: / 24-02-2011 / 12:12:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   753
!
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   754
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   755
generate_modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   756
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   757
    ^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
   758
            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
   759
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   760
    "
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   761
     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
   762
    "
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   763
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   764
    "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
   765
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   766
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   767
generate_modules_dot_stx
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   768
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   769
    ^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
   770
            in: self modules_dot_stx
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   771
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   772
"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   773
  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
   774
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   775
"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   776
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   777
    "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
   778
    "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
   779
!
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   780
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   781
generate_packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   782
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   783
    ^self 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   784
        replaceMappings: self packageName_dot_nsi_mappings 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   785
        in: self packageName_dot_nsi
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   786
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   787
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   788
     bosch_dapasx_application generate_packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   789
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   790
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   791
    "Modified: / 09-08-2006 / 11:31:09 / fm"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   792
    "Created: / 14-09-2006 / 21:08:23 / cg"
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   793
    "Modified: / 15-10-2006 / 12:52:21 / cg"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   794
!
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   795
10863
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   796
nsiFilename
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   797
    ^ self packageName,'.nsi'.
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   798
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   799
    "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
   800
!
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   801
9830
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   802
rcFilename
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   803
    ^ self packageName,'WinRC.rc'.
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   804
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   805
    "Created: / 07-09-2006 / 17:07:08 / cg"
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   806
!
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   807
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   808
resourceFilename
14856
dd8ceb4bc14f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14855
diff changeset
   809
    ^ (self rcFilename asFilename withSuffix:'$(RES)') name
9830
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   810
8639c1f2c1c3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9823
diff changeset
   811
    "Created: / 07-09-2006 / 17:12:53 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   812
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   813
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   814
!ApplicationDefinition class methodsFor:'file mappings'!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   815
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   816
additionalFilesToInstall_dot_nsi:bindings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   817
    ^ String 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   818
        streamContents:[:s | 
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   819
            self additionalFilesToInstall_win32 do:[:pattern | 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   820
                s nextPutLine:((self installFileLine_nsi_for:pattern) 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   821
                            expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   822
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   823
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   824
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   825
    "Created: / 01-03-2007 / 19:59:18 / cg"
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
additionalSectionsDescriptions_dot_nsi
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   832
additionalSectionsDescriptions_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   833
    ^self additionalSectionsDescriptions_dot_nsi expandPlaceholdersWith:bindings
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   836
additionalSectionsInsertDescriptions_dot_nsi
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   840
additionalSectionsInsertDescriptions_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   841
    ^self additionalSectionsInsertDescriptions_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   842
!
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
additionalSections_dot_nsi
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
!
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
additionalSections_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   849
    ^self additionalSections_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   850
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   851
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   852
appSourcesLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   853
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   854
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   855
('Section "Application Sources" Section4
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   856
    SectionIn 1
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   857
    SetOverwrite ifnewer
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   858
' expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   859
        self appSourcesProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   860
            s nextPutAll:((self defineAPPSourceLine_nsi_for: projectID)expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   861
            s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   862
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   863
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   864
'SectionEnd'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   865
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   866
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   867
    "Created: / 15-10-2006 / 12:59:03 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   868
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   869
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   870
autopackage_default_dot_apspec_mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   871
    |mappings|
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   872
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   873
    mappings := super autopackage_default_dot_apspec_mappings.
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   874
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   875
    mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   876
        at: 'APPLICATION' put: self applicationName;
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   877
        at: 'APPLICATION_PACKAGE' put: self package printString "applicationPackage";
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   878
        at: 'APPLICATION_TYPE' put: self applicationType;
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   879
        yourself.
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   880
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   881
    self offerSmalltalkSourceCode ifTrue:[ 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   882
"/        mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   883
"/            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   884
"/                                            in: self make_dot_proto_stx_source_rules).
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   885
    ].
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   886
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   887
    self offerApplicationSourceCode ifTrue:[  
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   888
"/        mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   889
"/            at: 'SOURCE_RULES' put:( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   890
"/                                            in: self make_dot_proto_app_source_rules ).
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   891
    ].
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   892
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   893
    self needResources ifTrue:[
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   894
"/        mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   895
"/            at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES';
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   896
"/            at: 'RESOURCE_RULES' put:( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   897
"/                                            in: self make_dot_proto_resource_rules );
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   898
"/            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   899
"/                                            in: self make_dot_proto_stx_resource_rules);
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   900
"/            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   901
"/            yourself.
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   902
    ].
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   903
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   904
    ^ mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   905
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   906
    "Created: / 21-12-2010 / 09:00:49 / cg"
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   907
    "Modified: / 21-12-2010 / 11:00:22 / cg"
14338
ca37328024f5 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 14335
diff changeset
   908
    "Modified (comment): / 04-09-2012 / 13:09:22 / cg"
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   909
!
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   910
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   911
bc_dot_mak_mappings
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   914
    d := super bc_dot_mak_mappings.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   915
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   916
        at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   917
        at: 'CONSOLE_APPLICATION_OR_EMPTY' put:(self makeConsoleApplication ifTrue:['consoleApp'] ifFalse:'');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   918
        at: 'NOCONSOLE_APPLICATION_OR_EMPTY' put:(self makeNonConsoleApplication ifTrue:['noConsoleApp'] ifFalse:'');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   919
        at: 'APPLICATION' put: (self applicationName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   920
        at: 'NSI_FILENAME' put: self nsiFilename ;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   921
        at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   922
        at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   923
        at: 'NOCONSOLE_LOGFILE' put:(self logFilenameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   924
        at: 'RESFILENAME' put: (self resourceFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   925
        at: 'RCFILENAME' put: (self rcFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   926
        at: 'STARTUP_CLASS' put: ( self startupClassName );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   927
        at: 'STARTUP_SELECTOR' put: (self startupSelector );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   928
        at: 'MAIN_DEFINES' put: (self mainDefines );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   929
        at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_bc_dot_mak); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   930
        at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_bc_dot_mak );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   931
        at: 'DEPENDENCIES' put: (self generateDependencies_win32);
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
   932
        at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLibs_bc_dot_mak ); 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
   933
        at: 'SUBPROJECTS_LINES' put: (self generateSubProjectLines_bc_dot_mak ); 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   934
        at: 'BUILD_TARGET' put: (self buildTarget );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   935
        at: 'REQUIRED_SUPPORT_DIRS' put: (self extraTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   936
        yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   937
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   938
    self needResources ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   939
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   940
            at: 'RESOURCE_RULES' put:( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   941
                                            in: self bc_dot_mak_resource_rules );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   942
            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   943
                                            in: self bc_dot_mak_stx_resource_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   944
            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   945
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   946
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   947
    self offerSmalltalkSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   948
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   949
            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   950
                                               in: self bc_dot_mak_stx_source_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   951
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   952
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   953
    self offerApplicationSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   954
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   955
            at: 'APP_SOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   956
                                               in: self bc_dot_mak_app_source_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   957
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   958
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   959
    ^ d
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
    "Modified: / 15-05-2007 / 17:27:04 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   962
!
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
buildDate_dot_h_mappings
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   967
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   968
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   969
        at: 'BUILDDATE' put: (Timestamp now printStringRFC1123Format ). 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   970
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   971
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   972
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   973
    "Created: / 30-08-2006 / 19:19:30 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   974
    "Modified: / 14-09-2006 / 18:58:31 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   975
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   976
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   977
commonFilesToInstall_dot_nsi:bindings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   978
    ^ String 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   979
        streamContents:[:s | 
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   980
            self commonFilesToInstall_win32 do:[:pattern | 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   981
                s nextPutLine:((self installFileLine_nsi_for:pattern) 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   982
                            expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   983
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   984
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   985
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   986
    "Created: / 01-03-2007 / 20:05:20 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   987
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   988
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   989
directoryUninstallLines_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   990
    "%(DIRECTORY_UNINSTALL_LINES)"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   991
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
    Delete "$INSTDIR\*"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   994
    RMDir /r "$INSTDIR"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   995
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   996
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   997
dmgImageSetupLines
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
   998
    "generate (unix) copy commands to generate a directory holding the dmg prototype image directory.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
   999
     This is used to generate a macOS deployable package"
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1000
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1001
    |genLine product dmgVolume dmgDir appDir contentsDir macOSDir resourcesDir dirsMade|
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1002
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1003
    product := self productName.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1004
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1005
    dmgVolume := product,'.dmg'.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1006
    dmgDir := product,'_dmg'.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1007
    appDir := dmgDir,'/',product,'.app'.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1008
    contentsDir := appDir,'/Contents'.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1009
    macOSDir := contentsDir,'/MacOS'.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1010
    resourcesDir := contentsDir,'/Resources'.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1011
    dirsMade := Set new.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1012
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1013
    genLine :=
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1014
        [:s :d :srcAndDest |
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1015
            |sourcePattern relPath destination|
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1016
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1017
            sourcePattern := srcAndDest first.
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1018
            relPath := srcAndDest second.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1019
            (relPath startsWith:'bin') ifTrue:[
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1020
                relPath := '.',(relPath copyFrom:4)
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1021
            ].
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1022
            destination := contentsDir,'/',d,'/',relPath.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1023
            (dirsMade includes:destination) ifFalse:[
16548
10af090fff20 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16546
diff changeset
  1024
                s tab; nextPutLine:('@-mkdir "%1"' bindWith:destination).
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1025
                dirsMade add:destination.
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1026
            ].
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1027
            s tab; nextPutLine:('-cp -r %1 "%2"' bindWith:sourcePattern with:destination).
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1028
        ].
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1029
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1030
    ^ String streamContents:[:s |
15217
f77fceee9d63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15208
diff changeset
  1031
        s tab; nextPutLine:('@-rm -rf "%1"' bindWith:dmgDir).
16548
10af090fff20 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16546
diff changeset
  1032
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:dmgDir).  dirsMade add:dmgDir.
10af090fff20 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16546
diff changeset
  1033
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:appDir).  dirsMade add:appDir.
10af090fff20 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16546
diff changeset
  1034
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:contentsDir).  dirsMade add:contentsDir.
10af090fff20 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16546
diff changeset
  1035
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:macOSDir).  dirsMade add:macOSDir.
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1036
        s tab; nextPutLine:('cp "',self applicationName,'" "',macOSDir,'/',product,'"').
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1037
        self commonFilesToInstall_unix do:[:eachPair | genLine value:s value:'MacOS' value:eachPair].
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1038
        self additionalFilesToInstall_unix do:[:eachPair | genLine value:s value:'MacOS' value:eachPair].
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1039
    ].
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1040
!
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1041
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1042
fileExtensionDefinitionLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1043
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1044
        self documentExtensions do:[:ext |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1045
            s nextPutAll:((self defineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1046
        ].
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1049
    "Created: / 15-10-2006 / 12:59:03 / 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
fileExtensionUndefinitionLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1053
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1054
        self documentExtensions do:[:ext |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1055
            s nextPutAll:((self undefineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1056
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1057
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1058
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1059
    "Created: / 15-10-2006 / 12:59:18 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1060
!
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
make_dot_proto_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1063
    |mappings|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1064
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1065
    mappings := super make_dot_proto_mappings.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1066
    mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1067
        at: 'NSI_FILENAME' put: self nsiFilename ;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1068
        at: 'APPLICATION' put: self applicationName;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1069
        at: 'APPLICATION_PACKAGE' put: self package printString "applicationPackage";
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1070
        at: 'APPLICATION_TYPE' put: self applicationType;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1071
        at: 'STARTUP_CLASS' put: (self startupClassName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1072
        at: 'STARTUP_SELECTOR' put: (self startupSelector);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1073
        at: 'MAIN_DEFINES' put: (self mainDefines);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1074
        at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_make_dot_proto);  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1075
        at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_make_dot_proto);  
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1076
        at: 'SUBPROJECTS_LINES' put: (self generateSubProjectLines_make_dot_proto); 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1077
        at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLibs_make_dot_proto); 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1078
        at: 'REQUIRED_LIBOBJS' put: (self generateRequiredLibobjs_make_dot_proto);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1079
        at: 'REQUIRED_LINK_LIBOBJS' put: (self generateRequiredLinkLibobjs_make_dot_proto);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1080
        at: 'DEPENDENCIES' put: (self generateDependencies_unix);
13339
58f348106c5c changed: #make_dot_proto_mappings
Stefan Vogel <sv@exept.de>
parents: 13286
diff changeset
  1081
        at: 'REQUIRED_SUPPORT_DIRS' put: (self extraTargets asStringWith:' ');
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1082
        at: 'PRODUCT_NAME' put: (self productName);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1083
        at: 'PRODUCT_FILENAME' put: (self productFilename);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1084
        at: 'PRODUCT_VERSION' put: (self productVersion);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1085
        at: 'PRODUCT_DATE' put: (self productDate);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1086
        at: 'PRODUCT_PUBLISHER' put: (self productPublisher);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1087
        at: 'PRODUCT_WEBSITE' put: (self productWebSite);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1088
        at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1089
        at: 'DMG_IMAGE_SETUP' put: (self dmgImageSetupLines);
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1090
        at: 'BUILD_TARGET' put: (self buildTarget ).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1091
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1092
    self offerSmalltalkSourceCode ifTrue:[ 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1093
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1094
            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1095
                                            in: self make_dot_proto_stx_source_rules).
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
    self offerApplicationSourceCode ifTrue:[  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1099
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1100
            at: 'SOURCE_RULES' put:( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1101
                                            in: self make_dot_proto_app_source_rules ).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1102
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1103
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1104
    self needResources ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1105
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1106
            at: 'RESOURCE_RULES' put:( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1107
                                            in: self make_dot_proto_resource_rules );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1108
            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1109
                                            in: self make_dot_proto_stx_resource_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1110
            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1111
            yourself.
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
    ^ mappings
14338
ca37328024f5 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 14335
diff changeset
  1115
ca37328024f5 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 14335
diff changeset
  1116
    "Modified (format): / 04-09-2012 / 13:06:50 / cg"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1117
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1118
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1119
modules_dot_c_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1120
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1121
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1122
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1123
    d 
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1124
        at: 'INIT_LIST' put: 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1125
            ((self generateClassLines:(self classLine_modules_dot_c)) , 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1126
             (self generateExtensionLine:(self extensionsLine_modules_dot_c)));
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1127
        at: 'EXTERN_INIT_NAME_LIST' put: 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1128
            ((self generateClassLines:(self classLine_modules_dot_c_extern)),
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1129
             (self generateExtensionLine:(self extensionsLine_modules_dot_c_extern)));
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1130
        yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1131
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1132
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1133
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1134
    "
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1135
        cvut_fel_izar modules_dot_c_mappings
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1136
    "
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1137
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1138
    "Created: / 19-09-2006 / 22:42:15 / cg"
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1139
    "Modified: / 03-03-2011 / 19:09:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1140
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1141
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1142
modules_dot_stx_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1143
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1144
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1145
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1146
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1147
        at: 'PREREQUISITE_LIBS' put: (self generatePreRequisiteLibs_modules_dot_stx);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1148
        at: 'ALLPREREQUISITE_LIBS' put: (self generateAllPreRequisiteLibs_modules_dot_stx);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1149
        at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLines_modules_dot_stx  ). 
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
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1152
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1153
    "Modified: / 14-09-2006 / 18:58:41 / cg"
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1156
nsiDeliveredConsoleExecutable
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1157
    self isGUIApplication ifFalse:[^ '' "made anyway"].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1158
    self makeConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1159
        ^ ('"',self applicationName,'.com','"').
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1160
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1161
    ^ ''
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1164
nsiDeliveredExecutables
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1165
    "by default, an executable named after the application.
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1166
     Redefine, if that's not the case. If multiple have to be delivered, 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1167
     return a string containing each individually double-quoted."
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
    |s|
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
    s := ''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1172
    self makeNonConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1173
        s := '"', self applicationNameNoConsole,'"'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1174
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1175
    self makeConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1176
        s := s , (' "',self applicationNameConsole,'"').
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1177
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1178
    ^ s
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1179
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1180
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1181
packageName_dot_nsi_mappings
14383
sr
parents: 14379
diff changeset
  1182
    |d s defLines undefLines defRunAsAdmin undefRunAsAdmin stxSourcesLines appSourcesLines|
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1183
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1184
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1185
    d
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1186
        at: 'TOP' put: ( self pathToTopWithSeparator:'\' );
12366
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
        at: 'APPLICATION' put: (self applicationName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1189
        at: 'APPLICATION_ICON' put: (self applicationInstallIconFileName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1190
        at: 'NSI_FILENAME' put: (self nsiFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1191
        at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1192
        at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1193
        at: 'DELIVERED_EXECUTABLES' put: (self nsiDeliveredExecutables);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1194
        at: 'MODULE' put: ( self module );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1195
        at: 'MODULE_KEY' put: ( self module asUppercaseFirst );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1196
        at: 'PRODUCT_NAME' put: (self productName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1197
        at: 'PRODUCT_FILENAME' put: (self productFilename);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1198
        at: 'PRODUCT_VERSION' put: (self productVersion);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1199
        at: 'PRODUCT_DATE' put: (self productDate);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1200
        at: 'PRODUCT_PUBLISHER' put: (self productPublisher);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1201
        at: 'PRODUCT_WEBSITE' put: (self productWebSite);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1202
        at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1203
        at: 'FILETYPE' put: ( 'VFT_DLL' );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1204
        at: 'FILE_VERSION_COMMASEPARATED' put: (self fileVersionCommaSeparated);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1205
        at: 'PRODUCT_VERSION_COMMASEPARATED' put: (self productVersionCommaSeparated);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1206
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1207
        at: 'COMPANY_NAME' put: (self companyName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1208
        at: 'FILE_DESCRIPTION' put: (self fileDescription);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1209
        at: 'FILE_VERSION' put: (self fileVersion);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1210
        at: 'LEGAL_COPYRIGHT' put: (self legalCopyright ? '');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1211
        at: 'INTERNAL_NAME' put: (self internalName).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1212
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1213
    s := self legalCopyright.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1214
    s notNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1215
        d  at: 'LEGAL_COPYRIGHT_LINE' put: '      VALUE "LegalCopyright", "',s,'\0"'
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
    s := self applicationInstallIconFileName.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1218
    s isNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1219
        d  at:'SEMI_IF_NO_ICON_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1220
        d  at:'SEMI_IF_ICON_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1221
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1222
        d  at:'SEMI_IF_NO_ICON_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1223
        d  at:'SEMI_IF_ICON_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1224
"/        d  at: #'ICONDEFINITION_LINE' put: 'IDR_MAINFRAME           ICON    DISCARDABLE     "',s,'"'
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
"/    s := self splashFileName.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1228
"/    s notNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1229
"/        d  at: #'SPLASHDEFINITION_LINE' put: 'IDR_SPLASH            BITMAP DISCARDABLE     "',s,'"'
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1232
    s := self docDirPath_win32.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1233
    s isEmptyOrNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1234
        d  at:'SEMI_IF_NO_DOC_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1235
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1236
        d  at:'SEMI_IF_NO_DOC_EXISTS' put:''.
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
    self offerSmalltalkSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1239
        stxSourcesLines := self stxSourcesLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1240
        d at:'STX_SOURCES_LINES' put:stxSourcesLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1241
        d  at:'SEMI_IF_NO_STX_SOURCES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1242
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1243
        d at:'STX_SOURCES_LINES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1244
        d  at:'SEMI_IF_NO_STX_SOURCES' put:';;'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1245
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1246
    self offerApplicationSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1247
        appSourcesLines := self appSourcesLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1248
        d at:'APP_SOURCES_LINES' put:appSourcesLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1249
        d at:'SEMI_IF_NO_STX_SOURCES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1250
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1251
        d at:'APP_SOURCES_LINES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1252
        d at:'SEMI_IF_NO_APP_SOURCES' put:';;'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1253
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1254
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1255
    defLines := self fileExtensionDefinitionLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1256
    undefLines := self fileExtensionUndefinitionLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1257
14383
sr
parents: 14379
diff changeset
  1258
    defRunAsAdmin := self runAsAdminDefinitionLines_dot_nsi:d.
sr
parents: 14379
diff changeset
  1259
    undefRunAsAdmin := self runAsAdminUndefinitionLines_dot_nsi:d.
sr
parents: 14379
diff changeset
  1260
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1261
    d at:'FILE_EXTENSION_DEFINITION_LINES' put:defLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1262
    d at:'FILE_EXTENSION_UNDEFINITION_LINES' put:undefLines.
14383
sr
parents: 14379
diff changeset
  1263
    d at:'DEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN' put:defRunAsAdmin.
sr
parents: 14379
diff changeset
  1264
    d at:'UNDEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN' put:undefRunAsAdmin.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1265
    d at:'ADDITIONAL_FILES_TO_INSTALL' put:(self additionalFilesToInstall_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1266
    d at:'COMMON_FILES_TO_INSTALL' put:(self commonFilesToInstall_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1267
    d at:'ADDITIONAL_SECTIONS' put:(self additionalSections_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1268
    d at:'ADDITIONAL_SECTIONS_DESCRIPTIONS' put:(self additionalSectionsDescriptions_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1269
    d at:'ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS' put:(self additionalSectionsInsertDescriptions_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1270
    d at: 'DIRECTORY_UNINSTALL_LINES' put: (self directoryUninstallLines_dot_nsi).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1271
    ^ d
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
    "Created: / 14-09-2006 / 21:08:44 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1274
    "Modified: / 15-05-2007 / 17:24:27 / cg"
14383
sr
parents: 14379
diff changeset
  1275
    "Modified: / 12-10-2012 / 11:44:32 / sr"
12366
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
preRequisiteLine_bc_dot_mak_mappings: aProjectID 
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
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1281
        at: 'FILE_NAME' put: (self libraryNameFor:aProjectID);  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1282
        at: 'MODULE_DIRECTORY' put: (self msdosPathToPackage:aProjectID from:self package);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1283
        at: 'BACK_DIRECTORY' put: (self msdosPathToPackage:self package from:aProjectID);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1284
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1285
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1286
    "Modified: / 09-02-2007 / 16:59:21 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1287
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1288
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1289
preRequisiteLine_bc_dot_mak_mappingsForClass:aClass
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1290
    |relPath|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1291
15529
570aa8bee992 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15394
diff changeset
  1292
    relPath := (PackageId from:aClass package) directory copyReplaceAll:$/ with:$\.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1293
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1294
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1295
        at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1296
        at: 'MODULE_DIRECTORY' put:relPath;     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1297
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1298
15529
570aa8bee992 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15394
diff changeset
  1299
    "Modified: / 16-07-2013 / 19:50:26 / cg"
12366
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
preRequisiteLine_make_dot_proto_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1303
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1304
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1305
        at: 'FILE_NAME' put: (self libraryNameFor:aProjectID);  
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1306
        at: 'MODULE_DIRECTORY' put: (self pathToPackage:aProjectID from:self package withSeparator:'/');     
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1307
        at: 'BACK_DIRECTORY' put: (self pathToPackage:self package from:aProjectID withSeparator:'/');     
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1308
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1309
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1310
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1311
preRequisiteLine_make_dot_proto_mappingsForClass:aClass
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1312
    |relPath|
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
    relPath := (PackageId from:aClass package) directory.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1315
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1316
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1317
        at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1318
        at: 'MODULE_DIRECTORY' put:relPath;     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1319
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1320
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1321
    "Modified: / 09-02-2007 / 16:28:12 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1322
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1323
14383
sr
parents: 14379
diff changeset
  1324
runAsAdminDefinitionLines_dot_nsi:bindings
sr
parents: 14379
diff changeset
  1325
    self runAsAdmin ifFalse:[
sr
parents: 14379
diff changeset
  1326
        ^ ''
sr
parents: 14379
diff changeset
  1327
    ].
sr
parents: 14379
diff changeset
  1328
sr
parents: 14379
diff changeset
  1329
    ^ String streamContents:[:s |
sr
parents: 14379
diff changeset
  1330
        s nextPutLine:('  WriteRegStr HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" "RUNASADMIN"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1331
        s nextPutLine:'  SetRegView 64'.
sr
parents: 14379
diff changeset
  1332
        s nextPutLine:('  WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" "RUNASADMIN"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1333
        s nextPutAll:'  SetRegView 32'.
sr
parents: 14379
diff changeset
  1334
    ].
sr
parents: 14379
diff changeset
  1335
sr
parents: 14379
diff changeset
  1336
    "Created: / 12-10-2012 / 10:12:12 / sr"
sr
parents: 14379
diff changeset
  1337
!
sr
parents: 14379
diff changeset
  1338
sr
parents: 14379
diff changeset
  1339
runAsAdminUndefinitionLines_dot_nsi:bindings
sr
parents: 14379
diff changeset
  1340
    self runAsAdmin ifFalse:[
sr
parents: 14379
diff changeset
  1341
        ^ ''
sr
parents: 14379
diff changeset
  1342
    ].
sr
parents: 14379
diff changeset
  1343
sr
parents: 14379
diff changeset
  1344
    ^ String streamContents:[:s |
sr
parents: 14379
diff changeset
  1345
        s nextPutLine:('  DeleteRegValue HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1346
        s nextPutLine:'  SetRegView 64'.
sr
parents: 14379
diff changeset
  1347
        s nextPutLine:('  DeleteRegValue HKLM "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1348
        s nextPutAll:'  SetRegView 32'.
sr
parents: 14379
diff changeset
  1349
    ].
sr
parents: 14379
diff changeset
  1350
sr
parents: 14379
diff changeset
  1351
    "Created: / 12-10-2012 / 10:12:37 / sr"
sr
parents: 14379
diff changeset
  1352
!
sr
parents: 14379
diff changeset
  1353
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1354
stxSourcesLines_dot_nsi:bindings
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
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1357
'Section "STX Sources" Section3
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1358
    SectionIn 1
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1359
    SetOverwrite ifnewer
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1360
'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1361
        self stxSourcesProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1362
            s nextPutAll:((self defineSTXSourceLine_nsi_for: projectID) expandPlaceholdersWith:bindings).
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
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1366
'SectionEnd'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1367
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1368
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1369
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1370
    "Created: / 15-10-2006 / 12:59:03 / cg"
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1373
subProjectLine_bc_dot_mak_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1374
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1375
        at: 'LIBRARY_NAME' put: (self libraryNameFor: aProjectID );     
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1376
        at: 'PATH_TO_SUB_PROJECT' put: (self msdosPathToPackage:aProjectID from:self package); 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1377
        at: 'PATH_TO_MYPROJECT' put: (self msdosPathToPackage: self package from: aProjectID); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1378
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1379
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1380
    "Modified: / 14-09-2006 / 18:59:26 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1381
!
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
subProjectLine_make_dot_proto_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1384
    ^ Dictionary new
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1385
        at: 'LIBRARY_NAME' put: (self libraryNameFor:aProjectID );     
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1386
        at: 'PATH_TO_SUB_PROJECT' put: (self pathToPackage:aProjectID from:self package withSeparator:'/'); 
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1387
        at: 'PATH_TO_MYPROJECT' put: (self pathToPackage:self package from:aProjectID withSeparator:'/'); 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1388
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1389
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1390
    "Modified: / 14-09-2006 / 18:59:26 / cg"
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1393
!ApplicationDefinition class methodsFor:'file mappings support'!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1394
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1395
generateAllPreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1396
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1397
        self allPreRequisitesSorted do:[:projectID | 
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1398
            (self shouldBeLoadedInitially:projectID) ifFalse:[
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1399
                s nextPut:$*.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1400
            ].
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1401
            s nextPutLine:(self libraryNameFor:projectID).
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1402
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1403
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1404
            self guiClassFileNames_win32 do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1405
                s nextPutLine:(eachFilename asFilename withoutSuffix baseName)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1406
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1407
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1408
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1409
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1410
    "
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1411
     exept_expecco_application generateAllPreRequisiteLibs_modules_dot_stx
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1412
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1413
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1414
    "Modified: / 07-09-2006 / 17:22:58 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1415
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1416
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1417
generateExtensionLine: extensionLineTemplate
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1418
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1419
    ^self hasExtensionMethods
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1420
        ifFalse:['']
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1421
        ifTrue:[
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1422
            self replaceMappings: 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1423
                (Dictionary new 
18501
1e7170250a51 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 18429
diff changeset
  1424
                    at: 'CLASS' put:( self st2c:(ProjectDefinition projectDefinitionClassNameForDefinitionOf:self package) );
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1425
                    yourself)
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1426
                in: extensionLineTemplate
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1427
            ]
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1428
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1429
    "Created: / 18-11-2010 / 09:38:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1430
!
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1431
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1432
generatePreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1433
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1434
        self effectivePreRequisites do:[:projectID | 
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1435
            (self shouldBeLoadedInitially:projectID) ifFalse:[
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1436
                s nextPut:$*.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1437
            ].
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1438
            s nextPutLine:(self libraryNameFor:projectID).
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1439
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1440
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1441
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1442
    "
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1443
     exept_expecco_application generatePreRequisiteLibs_modules_dot_stx
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1444
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1445
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1446
    "Modified: / 07-09-2006 / 17:22:58 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1447
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1448
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1449
generatePreRequisiteLines_bc_dot_mak         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1450
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1451
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1452
        self allPreRequisitesSorted do:[:eachPackage |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1453
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1454
            mappings := self preRequisiteLine_bc_dot_mak_mappings: eachPackage.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1455
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1456
                                in: self preRequisiteLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1457
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1458
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1459
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1460
        self guiClasses_win32 do:[:eachClass |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1461
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1462
            mappings := self preRequisiteLine_bc_dot_mak_mappingsForClass: eachClass.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1463
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1464
                                in: self preRequisiteLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1465
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1466
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1467
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1468
    ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1469
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1470
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1471
     bosch_dapasx_application generatePreRequisiteLines_bc_dot_mak 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1472
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1473
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1474
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1475
    "Modified: / 14-09-2006 / 21:58:47 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1476
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1477
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1478
generatePreRequisiteLines_make_dot_proto        
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1479
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1480
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1481
        self allPreRequisitesSorted do:[:eachPackage |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1482
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1483
            mappings := self preRequisiteLine_make_dot_proto_mappings: eachPackage.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1484
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1485
                                in: self preRequisiteLine_make_dot_proto.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1486
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1487
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1488
        ].
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  1489
        self guiClasses_unix do:[:eachClass |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1490
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1491
            mappings := self preRequisiteLine_make_dot_proto_mappingsForClass: eachClass.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1492
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1493
                                in: self preRequisiteLine_make_dot_proto.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1494
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1495
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1496
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1497
    ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1498
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1499
    "
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  1500
     exept_expecco_application generatePreRequisiteLines_bc_dot_mak 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1501
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1502
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1503
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1504
    "Modified: / 14-09-2006 / 21:58:47 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1505
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1506
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1507
generateRequiredLibobjs_make_dot_proto
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1508
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1509
        self allPreRequisitesSorted do:[:projectID |
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1510
            |libobjPath libPath|
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1511
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1512
            libPath := self pathToPackage:projectID withSeparator:'/'.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1513
            libobjPath := libPath , '/', (self libraryNameFor:projectID).
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1514
            s space; nextPutAll: libobjPath; nextPutLine:'$(O_EXT) \'.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1515
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1516
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1517
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1518
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1519
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1520
    "
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1521
     exept_expecco_application generateRequiredLibobjs_make_dot_proto      
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1522
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1523
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1524
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1525
generateRequiredLibs_bc_dot_mak
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1526
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1527
        s nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1528
        self allPreRequisitesSorted do:[:projectID | 
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1529
            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:'.dll \'.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1530
        ].
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1531
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1532
"/ Subprojects are not linked to the exe!!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1533
"/        self subProjects do:[:projectID | 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1534
"/            s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1535
"/        ].
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1536
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1537
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1538
            self guiClassFileNames_win32 do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1539
                s space; nextPutAll:eachFilename; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1540
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1541
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1542
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1543
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1544
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1545
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1546
     bosch_dapasx_application generateRequiredLibs_bc_dot_mak      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1547
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1548
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1549
    "Modified: / 07-09-2006 / 17:22:51 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1550
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1551
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1552
generateRequiredLibs_make_dot_proto
12600
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1553
    "/ cg: why not (self libraryNameFor:projectID),'.so'; ???
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1554
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1555
        self allPreRequisitesSorted do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1556
            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1557
        ].
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1558
"/ Subprojects are only built, but not linked to the executable!!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1559
"/        self subProjects do:[:projectID | 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1560
"/            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1561
"/        ].
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1562
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1563
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1564
            self guiClassFileNames_unix do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1565
                s space; nextPutAll:eachFilename; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1566
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1567
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1568
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1569
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1570
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1571
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1572
     alspa_batch_application generateRequiredLibs_make_dot_proto      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1573
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1574
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1575
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1576
generateRequiredLinkLibobjs_make_dot_proto
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1577
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1578
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1579
        self allPreRequisitesSorted do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1580
            s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1581
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1582
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1583
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1584
            self guiClassFileNames_unix do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1585
                s space; nextPutAll:eachFilename,'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1586
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1587
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1588
"/        self subProjects do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1589
"/            s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1590
"/        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1591
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1592
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1593
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1594
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1595
     alspa_batch_application generateRequiredLinkLibobjs_make_dot_proto      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1596
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1597
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1598
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1599
generateSubProjectLibs_bc_dot_mak         
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1600
    ^ String streamContents:[:s |
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1601
        self subProjects do:[:projectID | 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1602
            |libPath libobjPath|
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1603
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1604
            libPath := self pathToPackage:projectID withSeparator:'\'.
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1605
            libobjPath := libPath , '\', (self libraryNameFor:projectID).
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1606
            s space; nextPutAll:libobjPath; nextPutLine:'.dll \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1607
        ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1608
        s cr.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1609
    ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1610
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1611
    "
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1612
     exept_expecco_application generateSubProjectLibs_bc_dot_mak 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1613
     cg_newCompiler_driver_stc generateSubProjectLines_bc_dot_mak 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1614
    "
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1615
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1616
    "Created: / 09-08-2006 / 11:24:39 / fm"
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1617
    "Modified: / 14-09-2006 / 18:46:09 / cg"
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1618
!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1619
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1620
generateSubProjectLibs_make_dot_proto
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1621
    ^ String streamContents:[:s |
15880
d5b205998aea class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15869
diff changeset
  1622
        self effectiveSubProjects do:[:projectID | 
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1623
            |libPath libobjPath|
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1624
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1625
            libPath := self pathToPackage:projectID withSeparator:'/'.
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1626
            libobjPath := libPath , '/', (self libraryNameFor:projectID).
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1627
            s space; nextPutAll:libobjPath; nextPutLine:'$(O_EXT) \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1628
        ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1629
        s cr.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1630
    ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1631
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1632
    "
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1633
     exept_expecco_application generateSubProjectLibs_make_dot_proto      
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1634
    "
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1635
!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1636
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1637
generateSubProjectLines_bc_dot_mak         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1638
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1639
    ^ String streamContents:[:s |
15880
d5b205998aea class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15869
diff changeset
  1640
        self effectiveSubProjects do:[:projectID |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1641
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1642
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1643
            mappings := self subProjectLine_bc_dot_mak_mappings: projectID.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1644
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1645
                                in: self subProjectLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1646
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1647
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1648
        ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1649
    ]
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1650
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1651
    "
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1652
     bosch_dapasx_application generateSubProjectLines_bc_dot_mak 
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1653
     cg_newCompiler_driver_stc generateSubProjectLines_bc_dot_mak 
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1654
    "
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1655
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1656
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1657
    "Modified: / 14-09-2006 / 18:46:09 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1658
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1659
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1660
generateSubProjectLines_make_dot_proto         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1661
    ^ String streamContents:[:s |
15880
d5b205998aea class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15869
diff changeset
  1662
        self effectiveSubProjects do:[:projectID |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1663
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1664
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1665
            mappings := self subProjectLine_make_dot_proto_mappings: projectID.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1666
            newObjectLine := self replaceMappings: mappings
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1667
                                in: self subProjectLine_make_dot_proto.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1668
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1669
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1670
        ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1671
    ]
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1672
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1673
    "
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  1674
     exept_expecco_application generateSubProjectLines_make_dot_proto 
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1675
     cg_newCompiler_driver_stc generateSubProjectLines_make_dot_proto
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1676
    "
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1677
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1678
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1679
    "Modified: / 14-09-2006 / 18:46:09 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1680
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1681
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1682
generateSubProjectLines_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1683
    |string|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1684
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1685
    string := String streamContents:[:s |
15880
d5b205998aea class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15869
diff changeset
  1686
        self effectiveSubProjects do:[:projectID |
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1687
                    (self shouldBeLoadedInitially:projectID) ifFalse:[
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1688
                        s nextPut:$*.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1689
                    ].
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1690
                    s nextPutLine:(self libraryNameFor:projectID).
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1691
                ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1692
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1693
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1694
    ^ string
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1695
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1696
    "
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1697
     exept_expecco_application generateSubProjectLines_modules_dot_stx
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1698
     cg_newCompiler_driver_stc generateSubProjectLines_modules_dot_stx
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1699
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1700
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1701
    "Modified: / 17-08-2006 / 17:22:37 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1702
! !
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1703
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  1704
!ApplicationDefinition class methodsFor:'file templates'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  1705
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1706
bc_dot_def
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  1707
    "the template code for the bc.def file"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1708
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1709
^ 
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1710
'DESCRIPTION     %(DESCRIPTION)
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1711
CODE            PRELOAD MOVEABLE DISCARDABLE
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1712
SEGMENTS
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1713
    INITCODE    PRELOAD DISCARDABLE
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1714
'
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1715
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1716
    "Created: / 08-08-2006 / 12:26:58 / fm"
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1717
    "Modified: / 08-08-2006 / 19:32:27 / fm"
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  1718
    "Modified: / 17-08-2006 / 20:05:17 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1719
!
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1720
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1721
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
  1722
    "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
  1723
     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
  1724
     $% characters have to be duplicated"
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1725
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
  1726
^ '# $','Header','$
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1727
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1728
# DO NOT EDIT 
14247
352a05db118a changed:
Claus Gittinger <cg@exept.de>
parents: 14229
diff changeset
  1729
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'.
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1730
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1731
# 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
  1732
# 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
  1733
#
13952
cf03aa21d8b7 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13876
diff changeset
  1734
# Historic Note:
cf03aa21d8b7 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13876
diff changeset
  1735
#  this used to contain only rules to make with borland 
cf03aa21d8b7 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13876
diff changeset
  1736
#    (called via bmake, by "make.exe -f bc.mak")
cf03aa21d8b7 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13876
diff changeset
  1737
#  this has changed; it is now also possible to build using microsoft visual c
cf03aa21d8b7 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13876
diff changeset
  1738
#    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
cf03aa21d8b7 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13876
diff changeset
  1739
#
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1740
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1741
TOP=%(TOP)       
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1742
INCLUDE_TOP=$(TOP)\..
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  1743
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1744
# An old file, used as a dummy target for FORCE if we do not want
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1745
#   re-make libraries. Windows make does not work if we redefine FORCE=   (empty string)
15228
bd8559a81c36 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15218
diff changeset
  1746
# OLD_FILE=bmake.bat
15229
8883612b811e class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15228
diff changeset
  1747
OLD_FILE="c:\windows\win.ini"
8883612b811e class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15228
diff changeset
  1748
8883612b811e class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15228
diff changeset
  1749
#dummy target to force a build
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  1750
!!ifndef FORCE
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1751
FORCE=$(OLD_FILE)
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  1752
!!endif
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1753
13739
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1754
CFLAGS_LOCAL=$(CFLAGS_APPTYPE) \
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1755
 -DSTARTUP_CLASS="\"%(STARTUP_CLASS)\"" \
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1756
 -DSTARTUP_SELECTOR="\"%(STARTUP_SELECTOR)\"" \
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1757
 -DUSE_MODULE_TABLE
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1758
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1759
#
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1760
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1761
!!INCLUDE $(TOP)\rules\stdHeader_bc
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1762
!!INCLUDE Make.spec
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1763
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1764
OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1765
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1766
%(ADDITIONAL_DEFINITIONS)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1767
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1768
#
17044
f5b6a6f70b91 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17041
diff changeset
  1769
APPNAME=%(LIBRARY_NAME)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1770
LIBNAME=dummy
17041
baed8c1a8aab class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16548
diff changeset
  1771
MODULE_PATH=%(MODULE_PATH)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1772
STCOPT="+optinline"
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1773
LOCALINCLUDES=%(LOCAL_INCLUDES)
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1774
LOCALDEFINES=%(LOCAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1775
GLOBALDEFINES=%(GLOBAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1776
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1777
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
  1778
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1779
LFLAGS=$(APP_LFLAGS)
13733
c754bc40cc1c changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13731
diff changeset
  1780
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1781
PROJECT_NOCONSOLE= %(NOCONSOLE_APPLICATION)
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1782
PROJECT_CONSOLE= %(CONSOLE_APPLICATION)
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1783
ALLOBJFILES= main.$(O)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1784
!!ifdef USETCC
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1785
RESFILES=
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1786
!!else
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1787
RESFILES= %(RESFILENAME)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1788
!!endif
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1789
14348
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  1790
ALLOBJ= $(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
  1791
DEFFILE=$(TOP)\rules\bc_exe.def
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1792
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1793
LIBFILES=$(LIBDIR_LIBRUN)\librun.lib
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1794
ALLLIB=$(LIBFILES) $(APP_IMPORTLIBS) $(APP_RT_LIB)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1795
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1796
REQUIRED_LIBS=librun.dll %(REQUIRED_LIBS)
14856
dd8ceb4bc14f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14855
diff changeset
  1797
REQUIRED_FILES=$(RT_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
  1798
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1799
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1800
13262
db9299594444 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13176
diff changeset
  1801
target: %(BUILD_TARGET) postBuildCleanup 
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1802
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1803
# the executable, all required files and a self-installing-installer-exe
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1804
ALL:: prereq ALL_NP
14855
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  1805
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  1806
# all, but no prereqs
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1807
ALL_NP:: exe $(REQUIRED_SUPPORT_DIRS) postBuildCleanup setup
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1808
17187
f475f66a7e23 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17110
diff changeset
  1809
exe:  newBuildDate $(REQUIRED_LIBS) noConsoleApp consoleApp registerApplication
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1810
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1811
# the executable only
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1812
# with console
13349
07d793af5c59 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13339
diff changeset
  1813
consoleApp: $(REQUIRED_LIBS)
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1814
        -del main.$(O)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1815
        $(MAKE) -N -f bc.mak $(USE_ARG) \
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  1816
                MAKE_BAT=$(MAKE_BAT) \
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1817
                PROJECT=$(PROJECT_CONSOLE) \
14362
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  1818
                CFLAGS_APPTYPE=" -DWIN32GUI $(CFLAGS_CONSOLE)" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  1819
                LFLAGS_APPTYPE=" $(LFLAGS_CONSOLE)" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  1820
                CRT_STARTUP=" $(CRT_STARTUP_CONSOLE)" theExe
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1821
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1822
# without console
13349
07d793af5c59 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13339
diff changeset
  1823
noConsoleApp: $(REQUIRED_LIBS)
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1824
        -del main.$(O)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1825
        $(MAKE) -N -f bc.mak $(USE_ARG) \
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  1826
                MAKE_BAT=$(MAKE_BAT) \
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1827
                PROJECT=$(PROJECT_NOCONSOLE) \
14362
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  1828
                CFLAGS_APPTYPE=" -DWIN32GUI $(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"%(NOCONSOLE_LOGFILE)\\"\""" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  1829
                LFLAGS_APPTYPE=" $(LFLAGS_NOCONSOLE)" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  1830
                CRT_STARTUP=" $(CRT_STARTUP_NOCONSOLE)" theExe
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1831
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1832
# 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
  1833
theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) 
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1834
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  1835
# build all mandatory prerequisite packages (containing superclasses) for this package
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  1836
prereq:
15287
58ad2059c738 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15229
diff changeset
  1837
        $(MAKE) -N -f bc.mak $(USE_ARG) FORCE=FORCE_BUILD $(REQUIRED_LIBS)
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1838
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1839
FORCE_BUILD:
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1840
        @rem Dummy target to force a build
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  1841
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1842
# a nullsoft installable delivery
13270
c5c2d8c49294 changed: #bc_dot_mak
Stefan Vogel <sv@exept.de>
parents: 13267
diff changeset
  1843
# This uses the Nullsoft Installer Package and works in Windows only
c5c2d8c49294 changed: #bc_dot_mak
Stefan Vogel <sv@exept.de>
parents: 13267
diff changeset
  1844
setup: $(PROJECT) postBuildCleanup %(NSI_FILENAME)
c5c2d8c49294 changed: #bc_dot_mak
Stefan Vogel <sv@exept.de>
parents: 13267
diff changeset
  1845
        $(MAKENSIS) %(NSI_FILENAME)
18429
67b25723b25f class: ApplicationDefinition
sr
parents: 17578
diff changeset
  1846
        %(ADDITIONAL_POSTNSISRULES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1847
10648
c7d03f9184cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10626
diff changeset
  1848
newBuildDate:
13270
c5c2d8c49294 changed: #bc_dot_mak
Stefan Vogel <sv@exept.de>
parents: 13267
diff changeset
  1849
        del buildDate.h
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1850
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1851
new:
12040
373a8b88bd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12025
diff changeset
  1852
        $(MAKE_BAT) clean
373a8b88bd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12025
diff changeset
  1853
        $(MAKE_BAT)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1854
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
  1855
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS %(ADDITIONAL_RESOURCE_TARGETS) \
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1856
        stx_RESOURCES stx_STYLES stx_BITMAPS
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1857
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1858
%(RESOURCE_RULES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1859
%(STX_RESOURCE_RULES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1860
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1861
%(APP_SOURCE_RULES)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1862
%(STX_SOURCE_RULES)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  1863
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1864
%(PREREQUISITES_LIBS)      
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1865
%(SUBPROJECTS_LINES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1866
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1867
sources\NUL: 
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1868
        mkdir sources
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1869
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1870
show:
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1871
        @echo LFLAGS= $(LFLAGS)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1872
        @echo ALLOBJ= $(ALLOBJ)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1873
        @echo PROJECT= $(PROJECT)
14348
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  1874
        @echo APP_IMPORTLIBS= $(APP_IMPORTLIBS)
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1875
        @echo ALLLIB= $(ALLLIB)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1876
        @echo DEFFILE= $(DEFFILE)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  1877
        @echo ALLRES= $(ALLRES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1878
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1879
!!ifdef USEBC
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1880
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  1881
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1882
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ), $(PROJECT_CONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES)
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  1883
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  1884
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1885
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ), $(PROJECT_NOCONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES)
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1886
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1887
!!else
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1888
!! ifdef USEVC
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1889
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  1890
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1891
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) /OUT:"$(PROJECT_CONSOLE)" \
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1892
            /MANIFEST /MANIFESTFILE:"$(PROJECT_CONSOLE).manifest" \
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1893
            /PDB:"$(PROJECT_CONSOLE).pdb" \
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1894
            /SUBSYSTEM:CONSOLE $(ALLLIB) $(RESFILES)
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1895
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  1896
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1897
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) /OUT:"$(PROJECT_NOCONSOLE)" \
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1898
            /MANIFEST /MANIFESTFILE:"$(PROJECT_NOCONSOLE).manifest" \
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1899
            /PDB:"$(PROJECT_NOCONSOLE).pdb" \
14343
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1900
            /SUBSYSTEM:WINDOWS $(ALLLIB) $(RESFILES)
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1901
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1902
!! else
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1903
!!  ifdef USELCC
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1904
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  1905
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1906
        $(APP_LINKER) -subsystem console $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_CONSOLE)" $(ALLLIB) $(RESFILES)
14343
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1907
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1908
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1909
        $(APP_LINKER) -subsystem windows $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_NOCONSOLE)" $(ALLLIB) $(RESFILES)
14343
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1910
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1911
!!  else
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1912
!!   ifdef USETCC
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1913
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  1914
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1915
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_CONSOLE)" $(ALLLIB) $(RESFILES)
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1916
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  1917
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1918
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_NOCONSOLE)" $(ALLLIB) $(RESFILES)
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1919
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1920
!!   else
14645
29bcfa6db618 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14541
diff changeset
  1921
!!    if defined(USEMINGW32) || defined(USEMINGW64)
14346
813aaa40d640 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14343
diff changeset
  1922
14348
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  1923
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES) show
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1924
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_CONSOLE)" $(ALLLIB) $(RESFILES)
14348
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  1925
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  1926
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES) show
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  1927
        $(APP_LINKER) $(LFLAGS) $(LFLAGS_APPTYPE) $(CRT_STARTUP) $(ALLOBJ) -o "$(PROJECT_NOCONSOLE)" $(ALLLIB) $(APP_IMPORTLIBS) $(RESFILES)
14346
813aaa40d640 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14343
diff changeset
  1928
813aaa40d640 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14343
diff changeset
  1929
!!    else
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1930
error error error
14346
813aaa40d640 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14343
diff changeset
  1931
!!    endif
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1932
!!   endif
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1933
!!  endif
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1934
!! endif
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  1935
!!endif
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1936
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1937
!!INCLUDE $(TOP)\rules\stdRules_bc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1938
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1939
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1940
# additional rules
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1941
#
14856
dd8ceb4bc14f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14855
diff changeset
  1942
%(APPLICATION)Win.$(RES): %(APPLICATION)Win.rc %(APPLICATION).ico
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1943
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1944
main.$(O): buildDate.h main.c bc.mak
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1945
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1946
main.c: $(TOP)\librun\main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1947
        copy $(TOP)\librun\main.c main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1948
14379
b6ea5a62d5e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14371
diff changeset
  1949
# now in stdRules.
b6ea5a62d5e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14371
diff changeset
  1950
#buildDate.h: $(GENDATE_UTILITIY)
b6ea5a62d5e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14371
diff changeset
  1951
#        $(GENDATE_UTILITIY)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1952
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1953
librun.dll: $(TOP)\librun\$(OBJDIR_LIBRUN)\librun.dll
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1954
        copy $(TOP)\librun\$(OBJDIR_LIBRUN)\librun.dll librun.dll
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1955
15370
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  1956
#cs3245.dll
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  1957
$(RT_DLL): $(TOP)\support\win32\borland\$(RT_DLL)
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  1958
        copy $(TOP)\support\win32\borland\$(RT_DLL) $(RT_DLL)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1959
11688
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1960
X11.dll: $(TOP)\support\win32\X11.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1961
        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
  1962
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1963
Xext.dll: $(TOP)\support\win32\Xext.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  1964
        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
  1965
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1966
symbols.stc: $(TOP)\include\symbols.stc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1967
        copy $(TOP)\include\symbols.stc symbols.stc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1968
10313
b6ce260fe8cf #additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents: 10308
diff changeset
  1969
%(ADDITIONAL_RULES)
b6ce260fe8cf #additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents: 10308
diff changeset
  1970
13686
4d60130a151f generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13562
diff changeset
  1971
%(ADDITIONAL_HEADERRULES)
13264
8e9a0a4c663c changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13263
diff changeset
  1972
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1973
clean::
14367
69f64e03c0c3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14362
diff changeset
  1974
        -del genDate.exe genDate.com
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1975
        -del c0x32.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1976
        -del c0x32.lib
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1977
        -del buildDate.h
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1978
        -del $(PROJECT)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1979
        -del install_%(APPLICATION).exe
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1980
        -del stx.lib
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1981
        -del stx.dll
15370
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  1982
        -del $(RT_DLL)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1983
        -del $(REQUIRED_FILES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1984
        -del main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1985
        -del *.log
14856
dd8ceb4bc14f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14855
diff changeset
  1986
        -del *.$(RES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1987
        -rmdir /S /Q resources
13957
6a1e255f9fdd changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13952
diff changeset
  1988
        -rmdir /S /Q $(OBJDIR)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1989
11675
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  1990
clobber:: clean
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  1991
        -del *.dll *.exe *.com
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1992
13265
aab6db288ffc changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13264
diff changeset
  1993
postBuildCleanup::
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  1994
        @rem  stupid win-make does not allow empty
13265
aab6db288ffc changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13264
diff changeset
  1995
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1996
# 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
  1997
%(DEPENDENCIES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1998
# ENDMAKEDEPEND --- do not remove this line
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  1999
%(ADDITIONAL_RULES_HG)'.
10424
92ee1e31165b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10423
diff changeset
  2000
14524
cf9dd887a926 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14383
diff changeset
  2001
    "Modified: / 22-11-2012 / 17:18:28 / cg"
18429
67b25723b25f class: ApplicationDefinition
sr
parents: 17578
diff changeset
  2002
    "Modified: / 02-06-2015 / 17:40:03 / gg"
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2003
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2004
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2005
bc_dot_mak_app_source_rules
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2006
    |p|
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2007
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2008
    ^ String streamContents:[:s |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2009
        s nextPutAll:'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2010
%(APPLICATION)_SOURCES: sources\%(MODULE)\%(MODULE_PATH)\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2011
        -copy ..\*.st sources\%(MODULE)\%(MODULE_PATH)\..\*.*
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2012
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2013
'.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2014
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2015
        p := self moduleDirectory_win32 asCollectionOfSubstringsSeparatedBy:$\.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2016
        p size to:2 by:-1 do:[:len |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2017
            |part2 part1|
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2018
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2019
            part2 := (p copyTo:len) asStringWith:$\.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2020
            part1 := (p copyTo:len-1) asStringWith:$\.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2021
            s nextPutAll:'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2022
sources\%(MODULE)\',part2,'\NUL: sources\%(MODULE)\',part1,'\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2023
        mkdir sources\%(MODULE)\',part2,'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2024
'.
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2025
            s cr.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2026
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2027
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2028
        s nextPutAll:'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2029
sources\%(MODULE)\',p first,'\NUL: sources\%(MODULE)\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2030
        mkdir sources\%(MODULE)\',p first,'
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2031
'.
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2032
        s cr.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2033
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2034
        "/ 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
  2035
        self module ~= 'stx' ifTrue:[
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2036
            s nextPutAll:
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2037
'sources\%(MODULE)\NUL: sources\NUL
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2038
        mkdir sources\%(MODULE)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2039
'.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2040
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2041
    ]
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2042
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2043
    "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
  2044
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2045
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2046
bc_dot_mak_resource_rules
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2047
    |p|
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2048
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2049
    ^ String streamContents:[:s |
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2050
        s nextPutAll:'
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2051
%(APPLICATION)_RESOURCES: resources\%(MODULE)\%(MODULE_PATH)\NUL
11211
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  2052
        -copy ..\resources\*.rs resources\%(MODULE)\%(MODULE_PATH)\..
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  2053
        -copy ..\resources\*.style resources\%(MODULE)\%(MODULE_PATH)\..
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2054
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2055
%(APPLICATION)_BITMAPS: resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL
11211
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  2056
        -copy *.ico resources\%(MODULE)\%(MODULE_PATH)\bitmaps
4e402bbda0e8 copy style files
Stefan Vogel <sv@exept.de>
parents: 11156
diff changeset
  2057
        -copy *.gif resources\%(MODULE)\%(MODULE_PATH)\bitmaps
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2058
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2059
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
  2060
        mkdir resources\%(MODULE)\%(MODULE_PATH)\bitmaps
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2061
'.
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2062
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2063
        p := self moduleDirectory_win32 asCollectionOfSubstringsSeparatedBy:$\.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2064
        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
  2065
            |part2 part1|
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2066
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2067
            part2 := (p copyTo:len) asStringWith:$\.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2068
            part1 := (p copyTo:len-1) asStringWith:$\.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2069
            s nextPutAll:'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2070
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
  2071
        mkdir resources\%(MODULE)\',part2,'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2072
'.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2073
        ].
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2074
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2075
        s nextPutAll:'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2076
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
  2077
        mkdir resources\%(MODULE)\',p first,'
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2078
'.
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2079
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2080
        "/ 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
  2081
        self module ~= 'stx' ifTrue:[
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2082
            s nextPutAll:
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2083
'resources\%(MODULE)\NUL: resources\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2084
        mkdir resources\%(MODULE)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2085
'.
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2086
        ].
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2087
    ]
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2088
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2089
    "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
  2090
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2091
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2092
bc_dot_mak_stx_resource_rules
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2093
    ^ '
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2094
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2095
stx_RESOURCES: \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2096
        keyboard.rc \
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2097
        keyboardMacros.rc \
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2098
        host.rc \
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2099
        h_win32.rc \
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2100
        display.rc \
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2101
        d_win32.rc \
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2102
        libbasic_RESOURCES \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2103
        libview_RESOURCES \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2104
        libtool_RESOURCES  \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2105
        libtool2_RESOURCES
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2106
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2107
keyboard.rc: $(TOP)\projects\smalltalk\keyboard.rc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2108
        copy $(TOP)\projects\smalltalk\keyboard.rc *.*
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2109
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2110
keyboardMacros.rc: $(TOP)\projects\smalltalk\keyboardMacros.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2111
        copy $(TOP)\projects\smalltalk\keyboardMacros.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2112
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2113
host.rc: $(TOP)\projects\smalltalk\host.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2114
        copy $(TOP)\projects\smalltalk\host.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2115
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2116
h_win32.rc: $(TOP)\projects\smalltalk\h_win32.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2117
        copy $(TOP)\projects\smalltalk\h_win32.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2118
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2119
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
  2120
        copy $(TOP)\projects\smalltalk\display.rc *.*
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2121
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2122
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
  2123
        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
  2124
12542
361ef912b274 changed: #bc_dot_mak_stx_resource_rules
Claus Gittinger <cg@exept.de>
parents: 12540
diff changeset
  2125
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
  2126
        -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
  2127
        -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
  2128
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2129
stx_BITMAPS: \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2130
        libwidg_BITMAPS
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2131
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2132
libwidg_BITMAPS: resources\stx\libwidg\bitmaps\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2133
        -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
  2134
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2135
libbasic_RESOURCES: resources\stx\libbasic\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2136
        copy $(TOP)\libbasic\resources\*.rs resources\stx\libbasic\*.*
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2137
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2138
libtool_RESOURCES: resources\stx\libtool\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2139
        -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
  2140
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2141
libtool2_RESOURCES: resources\stx\libtool2\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2142
        -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
  2143
12542
361ef912b274 changed: #bc_dot_mak_stx_resource_rules
Claus Gittinger <cg@exept.de>
parents: 12540
diff changeset
  2144
libview_RESOURCES: resources\stx\libview\NUL 
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2145
        -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
  2146
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2147
libview2_RESOURCES: resources\stx\libview2\NUL
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2148
        -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
  2149
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2150
resources\stx\libbasic\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2151
        mkdir resources\stx\libbasic
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2152
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2153
resources\stx\libtool\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2154
        mkdir resources\stx\libtool
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2155
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2156
resources\stx\libtool2\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2157
        mkdir resources\stx\libtool2
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2158
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2159
resources\stx\libview\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2160
        mkdir resources\stx\libview
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2161
12540
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2162
resources\stx\libview\styles\NUL: resources\stx\libview\NUL
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2163
        mkdir resources\stx\libview\styles
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2164
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2165
resources\stx\libview2\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2166
        mkdir resources\stx\libview2
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2167
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2168
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
  2169
        mkdir resources\stx\libwidg\bitmaps
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2170
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2171
resources\stx\libwidg\NUL: resources\stx\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2172
        mkdir resources\stx\libwidg
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2173
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2174
resources\stx\NUL: resources\NUL
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2175
        mkdir resources\stx
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2176
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2177
resources\NUL:
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2178
        mkdir resources
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2179
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2180
bitmaps\NUL:
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2181
        mkdir bitmaps
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2182
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2183
doc\NUL:
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2184
        mkdir doc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2185
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2186
'.
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2187
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2188
    "Created: / 20-09-2006 / 17:36:29 / cg"
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2189
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2190
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2191
bc_dot_mak_stx_source_rules
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2192
    |libDirs|
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2193
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2194
    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
  2195
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2196
    ^ String streamContents:[:s |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2197
        s nextPutAll:'
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2198
STX_SOURCES:'.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2199
        libDirs do:[:libDir |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2200
            s nextPutAll:' '; nextPutAll:('sources\stx\',libDir,'\NUL')
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2201
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2202
        s cr.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2203
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2204
        libDirs do:[:libDir |
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2205
            s nextPutLine:('sources\stx\',libDir,'\NUL: sources\stx\NUL').
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2206
            s tab; nextPutLine:('mkdir sources\stx\',libDir).
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2207
            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
  2208
            s cr.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2209
        ].
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2210
        s nextPutLine:'sources\stx\NUL: sources\NUL'.
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2211
        s tab; nextPutLine:'mkdir sources\stx'.
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2212
        s cr.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2213
    ]
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2214
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2215
    "Created: / 15-05-2007 / 17:27:37 / cg"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2216
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2217
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2218
buildDate_dot_h
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2219
    "the template code for the buildDate.h file"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2220
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2221
^ 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2222
'#define BUILD_DATE "%(BUILDDATE)"'
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2223
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2224
    "Created: / 30-08-2006 / 19:18:34 / cg"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2225
!
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2226
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2227
classLine_modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2228
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2229
^'_%(CLASS)_Init,'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2230
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2231
    "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
  2232
    "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
  2233
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2234
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2235
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
  2236
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2237
^'extern void _%(CLASS)_Init();'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2238
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2239
    "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
  2240
    "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
  2241
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2242
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2243
defineAPPSourceLine_nsi_for: projectID
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2244
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2245
^      
10568
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  2246
'   
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  2247
    SetOutPath "$INSTDIR\sources\',(self moduleFor: projectID),'\',(self moduleDirectory_win32For:projectID) ,'"
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  2248
    File /r "${STX_ROOT}\', (self moduleFor: projectID) ,'\',(self moduleDirectory_win32For:projectID) ,'\*.st"'
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2249
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2250
    "Created: / 15-10-2006 / 12:50:00 / cg"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2251
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2252
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2253
defineExtenionLine_nsi_for:extension
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2254
    "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
  2255
11678
0121d26d67bf nsis file generation
Stefan Vogel <sv@exept.de>
parents: 11677
diff changeset
  2256
    ^ '  WriteRegStr HKCR ".',extension,'" "" "%(MODULE_KEY).%(PRODUCT_FILENAME).1"'
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2257
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2258
    "Created: / 15-10-2006 / 12:50:00 / cg"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2259
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2260
15393
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2261
defineExtensionLine_nsi_for:extension 
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2262
    "the template code for a single extenions definition line in the <appname>.nsi file"
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2263
    
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2264
    ^ '  WriteRegStr HKCR ".' , extension 
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2265
        , '" "" "%(MODULE_KEY).%(PRODUCT_FILENAME).1"'
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2266
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2267
    "Created: / 15-10-2006 / 12:50:00 / cg"
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2268
!
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2269
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2270
defineSTXSourceLine_nsi_for: projectID
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2271
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2272
^      
10572
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  2273
'  
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  2274
    SetOutPath "$INSTDIR\sources\stx\', (self moduleDirectory_win32For:projectID),'"
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  2275
    File /r "${STX_ROOT}\stx\', (self moduleDirectory_win32For:projectID),'\*.st"'
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2276
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2277
    "Created: / 15-10-2006 / 12:50:00 / cg"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2278
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2279
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2280
extensionsLine_modules_dot_c
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2281
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2282
    ^'_%(CLASS)_extensions_Init,'
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2283
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2284
    "Created: / 18-11-2010 / 10:36:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2285
!
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2286
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2287
extensionsLine_modules_dot_c_extern
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2288
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2289
    ^'extern void _%(CLASS)_Init();'
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2290
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2291
    "Created: / 03-03-2011 / 19:13:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2292
!
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2293
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2294
installFileLine_nsi_for:filePattern
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2295
    "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
  2296
11677
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2297
    (filePattern startsWith:'SetOutPath ') ifTrue:[
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2298
        ^ filePattern.
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2299
    ].        
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2300
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2301
    ^  '  File ', filePattern
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2302
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2303
    "Created: / 01-03-2007 / 20:00:20 / cg"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2304
!
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2305
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2306
make_dot_proto
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2307
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2308
^
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2309
'# $','Header','$
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2310
#
14247
352a05db118a changed:
Claus Gittinger <cg@exept.de>
parents: 14229
diff changeset
  2311
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'.
13733
c754bc40cc1c changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13731
diff changeset
  2312
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2313
# -------------- no need to change anything below ----------
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2314
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2315
# This makefile generates some standalone demo applications
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2316
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2317
#    make
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2318
#       generates %(APPLICATION)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2319
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2320
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2321
TOP=%(TOP)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2322
INCLUDE_TOP=$(TOP)/..
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2323
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2324
# set to a dummy file name (like FORCE=@@@FORCE-BUILD@@@) to force the build of prereq packages
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2325
FORCE=
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2326
.PHONY: $(FORCE)
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2327
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2328
PACKAGE=%(APPLICATION_PACKAGE)
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2329
SUBDIRS=
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2330
SUPPRESS_LOCAL_ABBREVS="yes"
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2331
NOAUTOLOAD=1
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2332
NOSUBAUTOLOAD=1
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2333
14940
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2334
LOCALINCLUDES=%(LOCAL_INCLUDES)
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  2335
LOCALDEFINES=%(LOCAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  2336
GLOBALDEFINES=%(GLOBAL_DEFINES)
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
  2337
MAIN_DEFINES=%(MAIN_DEFINES)
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2338
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2339
RCSSOURCES=Make.proto *.st
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2340
LINKSOURCES=Make.proto *.st
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2341
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2342
DELIVERBINARIES=
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2343
17096
fbfea8d21523 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17044
diff changeset
  2344
APPNAME=%(LIBRARY_NAME)
10803
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2345
LIBNAME=%(LIBRARY_NAME)
13876
db71f66f14ea -headerDir= instead of --headerDir=
Claus Gittinger <cg@exept.de>
parents: 13864
diff changeset
  2346
STCLOCALOPT=''-package=$(PACKAGE)'' -I. -headerDir=. $(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
  2347
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2348
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2349
# ********** OPTIONAL: MODIFY the next line ***
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2350
# 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
  2351
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2352
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2353
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2354
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2355
# ********** OPTIONAL: MODIFY the next line ***
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2356
# 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
  2357
LOCAL_EXTRA_TARGETS=
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2358
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2359
OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2360
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2361
%(ADDITIONAL_DEFINITIONS)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2362
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2363
%(ADDITIONAL_DEFINITIONS_SVN)
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2364
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2365
LIBLIST = $(REQUIRED_LIBS)
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2366
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2367
# required libs:
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2368
#
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2369
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2370
REQUIRED_LIBS=%(REQUIRED_LIBS)
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2371
REQUIRED_LIBOBJS=%(REQUIRED_LIBOBJS)
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2372
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
  2373
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2374
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2375
SUBPROJECT_LIBS=%(SUBPROJECT_LIBS)
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2376
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2377
target: %(BUILD_TARGET)
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2378
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2379
all::   prereq ALL_NP
14666
51ea41869723 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14645
diff changeset
  2380
14855
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  2381
# like ALL, but not prereqs
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2382
ALL_NP:: exe $(SUBPROJECT_LIBS) $(REQUIRED_SUPPORT_DIRS) $(SETUP_RULE)
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2383
17110
67281f682da7 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17096
diff changeset
  2384
exe:    %(APPLICATION) registerApplication
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2385
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2386
%(APPLICATION): $(APP_DIRS_TO_MAKE) $(APP_LIBOBJS) $(REQUIRED_LIBOBJS) $(OBJS)
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2387
        $(MAKE) link_%(APPLICATION)
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2388
14855
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  2389
14666
51ea41869723 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14645
diff changeset
  2390
link_%(APPLICATION):
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2391
        $(MAKE) %(APPLICATION_TYPE) \
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2392
                    TARGET=%(APPLICATION) \
12544
d518ef408c6b changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12542
diff changeset
  2393
                    APPLICATION_CLASSES="$(COMMON_CLASSES) $(UNIX_CLASSES)" \
10803
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2394
                    APPLICATION_OBJS="$(OBJS)" \
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2395
                    APPLICATION_LIBLIST="$(REQUIRED_LIBS)" \
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2396
                    APPLICATION_LIBOBJS="$(REQUIRED_LIBOBJS)" \
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2397
                    APPLICATION_LINK_LIBOBJS="$(REQUIRED_LINK_LIBOBJS)" \
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2398
                    STARTUP_CLASS="%(STARTUP_CLASS)" \
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2399
                    STARTUP_SELECTOR="%(STARTUP_SELECTOR)" \
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
  2400
                    MAIN_DEFINES="%(MAIN_DEFINES)"
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2401
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2402
# build all mandatory prerequisite packages (containing superclasses) for this package
11572
eda1f00c796c Install required support dirs when building the exe
Stefan Vogel <sv@exept.de>
parents: 11549
diff changeset
  2403
prereq:
14989
50e655bdbcfa class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14979
diff changeset
  2404
        $(MAKE) FORCE=@@@FORCE-BUILD@@@ $(REQUIRED_LIBOBJS)
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2405
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2406
#
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2407
# a self installable delivery
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2408
#
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2409
# backward compatible fallback
14784
e2938bb8a12d setup: double rule
Claus Gittinger <cg@exept.de>
parents: 14666
diff changeset
  2410
setup::
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2411
        @if test -d autopackage; then \
12528
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  2412
            makepackage; \
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  2413
        else \
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2414
            echo "Error: make setup not yet available in this unix"; \
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2415
            exit 1; \
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2416
        fi
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2417
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2418
#
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2419
# for linux, this uses autopackage
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2420
#
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2421
setup_linux:
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2422
        @if test -d autopackage; then \
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2423
            makepackage; \
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2424
        else \
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2425
            echo "Error: missing autopackage directory"; \
12528
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  2426
            exit 1; \
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  2427
        fi
ccca05f944d9 changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12427
diff changeset
  2428
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2429
#
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2430
# for mac, a dmg is generated
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2431
#
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2432
setup_macosx:   "%(PRODUCT_NAME)_dmg"
15826
b82e22c1127b class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15602
diff changeset
  2433
        -rm "%(PRODUCT_NAME).dmg"
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  2434
        hdiutil create -fs HFSX -layout SPUD "%(PRODUCT_NAME).dmg" -srcfolder "%(PRODUCT_NAME)_dmg" -format UDZO -volname "%(PRODUCT_NAME)" -quiet
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2435
16546
d71424c3bf08 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16336
diff changeset
  2436
app: "%(PRODUCT_NAME)_dmg"
d71424c3bf08 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16336
diff changeset
  2437
16548
10af090fff20 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16546
diff changeset
  2438
"%(PRODUCT_NAME)_dmg": $(SUBPROJECT_LIBS) $(REQUIRED_SUPPORT_DIRS) 
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  2439
%(DMG_IMAGE_SETUP)
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2440
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2441
SOURCEFILES: %(APPLICATION)_SOURCES \
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2442
        stx_SOURCES
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2443
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2444
%(SOURCE_RULES)
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2445
%(STX_SOURCE_RULES)
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2446
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
  2447
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
  2448
        stx_RESOURCES stx_STYLES stx_BITMAPS
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2449
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2450
%(RESOURCE_RULES)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2451
%(STX_RESOURCE_RULES)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2452
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2453
%(PREREQUISITES_LIBS)
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  2454
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2455
%(SUBPROJECTS_LINES)
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2456
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2457
%(ADDITIONAL_RULES)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2458
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2459
%(ADDITIONAL_RULES_SVN)
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2460
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  2461
%(ADDITIONAL_RULES_HG)
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  2462
13686
4d60130a151f generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13562
diff changeset
  2463
%(ADDITIONAL_HEADERRULES)
4d60130a151f generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13562
diff changeset
  2464
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2465
clean::
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2466
        -rm -f *.so %(APPLICATION).$(O)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2467
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
  2468
clobber:: clean
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2469
        -rm -f %(APPLICATION) *.img *.sav
11381
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2470
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2471
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2472
%(DEPENDENCIES)
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2473
# ENDMAKEDEPEND --- do not remove this line
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2474
'
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2475
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2476
    "Modified: / 09-08-2006 / 16:50:23 / fm"
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2477
    "Created: / 29-09-2006 / 23:47:07 / cg"
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2478
    "Modified: / 24-06-2009 / 21:40:26 / Jan Vrany <vranyj1@fel.cvut.cz>"
14247
352a05db118a changed:
Claus Gittinger <cg@exept.de>
parents: 14229
diff changeset
  2479
    "Modified: / 26-07-2012 / 00:57:07 / cg"
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  2480
    "Modified: / 28-11-2012 / 10:18:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2481
!
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2482
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2483
make_dot_proto_app_source_rules
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2484
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2485
    ^ String streamContents:[:s |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2486
        s
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2487
          cr;
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2488
          nextPutAll: '%(APPLICATION)_SOURCES: '.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2489
        self appSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2490
            s nextPutAll: ' \
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2491
        ', (self make_dot_proto_source_title_for: projectID).
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2492
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2493
        s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2494
        self appSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2495
            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
  2496
            s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2497
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2498
    ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2499
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2500
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2501
make_dot_proto_app_source_rules_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2502
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2503
    | module moduleDirectory|
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2504
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2505
    module := self moduleFor: projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2506
    moduleDirectory := self moduleDirectoryFor:projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2507
    ^ String cr,
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2508
    (self make_dot_proto_source_title_for: projectID), ':
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2509
        mkdir -p sources/', module,'/', moduleDirectory, '
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2510
        cp $(TOP)/../', module, '/', moduleDirectory,'/*.st sources/', module,'/', moduleDirectory.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2511
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2512
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2513
make_dot_proto_resource_rules
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2514
    ^ String streamContents:[:s |
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2515
        s nextPutAll:'
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2516
%(APPLICATION)_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2517
        mkdir -p resources/%(MODULE)/%(MODULE_PATH)
11830
3ecc9e639f0b fix resource rules for linux
Stefan Vogel <sv@exept.de>
parents: 11801
diff changeset
  2518
        -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
  2519
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2520
%(APPLICATION)_BITMAPS: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2521
        mkdir -p resources/%(MODULE)/%(MODULE_PATH)/bitmaps
11830
3ecc9e639f0b fix resource rules for linux
Stefan Vogel <sv@exept.de>
parents: 11801
diff changeset
  2522
        -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
  2523
'.
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2524
    ].
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2525
!
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2526
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2527
make_dot_proto_source_title_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2528
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2529
    |packageName |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2530
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2531
    packageName := self packageNameFor: projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2532
    ^ packageName, '_SOURCES'
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2533
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2534
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2535
make_dot_proto_stx_resource_rules
15203
a7bafdd2965b class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15166
diff changeset
  2536
    self isGUIApplication ifFalse:[
a7bafdd2965b class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15166
diff changeset
  2537
        "/ non-GUI app: only include libbasic resources (for Date)
14940
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2538
        ^ '
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2539
stx_RESOURCES: \
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2540
        libbasic_RESOURCES
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2541
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2542
stx_STYLES: 
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2543
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2544
stx_BITMAPS:
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2545
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2546
libbasic_RESOURCES: 
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2547
        mkdir -p resources/stx/libbasic
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2548
        -cp $(TOP)/libbasic/resources/*.* resources/stx/libbasic
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2549
'
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2550
    ].
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2551
15203
a7bafdd2965b class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15166
diff changeset
  2552
    "/ GUI app: include all resources and rc files
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2553
    ^ '
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2554
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2555
stx_RESOURCES: \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2556
        keyboard.rc \
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2557
        keyboardMacros.rc \
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2558
        display.rc \
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2559
        libbasic_RESOURCES \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2560
        libview_RESOURCES \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2561
        libtool_RESOURCES  \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2562
        libtool2_RESOURCES
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2563
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2564
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
  2565
        cp $(TOP)/projects/smalltalk/keyboard.rc .
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2566
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2567
keyboardMacros.rc: $(TOP)/projects/smalltalk/keyboardMacros.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2568
        cp $(TOP)/projects/smalltalk/keyboardMacros.rc .
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2569
11029
3a3e0179cb06 No $\ as path separator in unix Make.proto files
Stefan Vogel <sv@exept.de>
parents: 11017
diff changeset
  2570
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
  2571
        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
  2572
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2573
stx_STYLES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2574
        mkdir -p resources/stx/libview
12540
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2575
        mkdir -p resources/stx/libview/styles
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2576
        cp $(TOP)/libview/styles/*.common resources/stx/libview/styles
59f1fe7e61c8 changed:
Claus Gittinger <cg@exept.de>
parents: 12528
diff changeset
  2577
        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
  2578
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2579
stx_BITMAPS: \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2580
        libwidg_BITMAPS
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2581
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2582
libwidg_BITMAPS: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2583
        mkdir -p resources/stx/libwidg/bitmaps
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2584
        -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
  2585
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2586
libbasic_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2587
        mkdir -p resources/stx/libbasic
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2588
        -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
  2589
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2590
libtool_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2591
        mkdir -p resources/stx/libtool
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2592
        -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
  2593
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2594
libtool2_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2595
        mkdir -p resources/stx/libtool2
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2596
        -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
  2597
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2598
libview_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2599
        mkdir -p resources/stx/libview
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2600
        -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
  2601
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2602
libview2_RESOURCES: 
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2603
        mkdir -p resources/stx/libview2
12549
1cb4580cabb6 changed:
Stefan Vogel <sv@exept.de>
parents: 12544
diff changeset
  2604
        -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
  2605
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2606
bitmaps:
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2607
        mkdir -p bitmaps
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2608
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2609
doc:
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2610
        mkdir -p doc
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2611
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2612
'.
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2613
!
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2614
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2615
make_dot_proto_stx_source_rules
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2616
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2617
    ^ String streamContents:[:s |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2618
        s
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2619
          cr;
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2620
          nextPutAll: 'stx_SOURCES: '.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2621
        self stxSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2622
            s nextPutAll: '\
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2623
        ', (self make_dot_proto_source_title_for: projectID).
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2624
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2625
        s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2626
        self stxSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2627
            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
  2628
            s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2629
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2630
    ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2631
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2632
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2633
make_dot_proto_stx_source_rules_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2634
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2635
    | moduleDirectory|
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2636
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2637
    moduleDirectory := self moduleDirectoryFor:projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2638
    ^ String cr,
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2639
    (self make_dot_proto_source_title_for: projectID), ':
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2640
        mkdir -p sources/stx/', moduleDirectory, '
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2641
        cp $(TOP)/', moduleDirectory,'/*.st sources/stx/', moduleDirectory.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2642
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2643
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2644
modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2645
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2646
^ 
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2647
'/* $','Header','$
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2648
 *
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2649
 * DO NOT EDIT 
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2650
 * 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
  2651
 *
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2652
 * 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
  2653
 * 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
  2654
 */
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2655
typedef void (*vf)();
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2656
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2657
%(EXTERN_INIT_NAME_LIST)
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2658
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2659
static vf modules[] = {
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2660
    %(INIT_LIST)
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2661
    (vf)0
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2662
};
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2663
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2664
vf *__modules__ = modules;
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2665
'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2666
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2667
    "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
  2668
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2669
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2670
modules_dot_stx
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2671
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2672
^ 
9542
06d0781c889c *** empty log message ***
fm
parents: 9539
diff changeset
  2673
'# $','Header','$
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2674
#
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2675
# DO NOT EDIT 
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2676
# automagically generated from the projectDefinition: ',self name,'.
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2677
#
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2678
# Warning: once you modify this file, do not rerun
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2679
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2680
#
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2681
# This file is (currently) only used with win-95 / win-NT versions of STX.
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2682
# It lists the dll''s which are to be loaded at startup time.
13123
cb0e2cfd6558 changed: #modules_dot_stx
Claus Gittinger <cg@exept.de>
parents: 12995
diff changeset
  2683
# Notice, lines starting with a "#" are comments.
cb0e2cfd6558 changed: #modules_dot_stx
Claus Gittinger <cg@exept.de>
parents: 12995
diff changeset
  2684
# Lines starting with a "*" are treated as comments by the VM, but are usually loaded
cb0e2cfd6558 changed: #modules_dot_stx
Claus Gittinger <cg@exept.de>
parents: 12995
diff changeset
  2685
# by the application at the very beginning.
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2686
#
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2687
# All classes loaded at startup time will be present as precompiled classes.
14857
e531889798fc class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14856
diff changeset
  2688
# Others might be autoloaded or loaded explicit using "Smalltalk loadPackage:xxx".
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2689
#
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
  2690
%(ALLPREREQUISITE_LIBS)
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2691
'
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2692
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2693
    "Created: / 08-08-2006 / 12:26:58 / fm"
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2694
    "Modified: / 08-08-2006 / 19:32:27 / fm"
9542
06d0781c889c *** empty log message ***
fm
parents: 9539
diff changeset
  2695
    "Modified: / 16-08-2006 / 17:56:58 / User"
13123
cb0e2cfd6558 changed: #modules_dot_stx
Claus Gittinger <cg@exept.de>
parents: 12995
diff changeset
  2696
    "Modified: / 09-11-2010 / 11:57:39 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2697
!
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2698
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2699
packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2700
    "the template code for the <appname>.nsi file"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2701
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2702
|docDirPath|
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2703
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2704
^ 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2705
'; $','Header','$
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2706
; Script generated by ProjectDefinition.
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2707
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2708
!!define PRODUCT_NAME "%(PRODUCT_NAME)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2709
!!define PRODUCT_FILENAME "%(PRODUCT_FILENAME)"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2710
!!define PRODUCT_VERSION "%(PRODUCT_VERSION)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2711
!!define PRODUCT_PUBLISHER "%(PRODUCT_PUBLISHER)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2712
!!define PRODUCT_WEB_SITE "%(PRODUCT_WEBSITE)"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2713
!!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
  2714
!!define PRODUCT_UNINST_ROOT_KEY "HKLM"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2715
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2716
!!define STX_ROOT "%(TOP)\.."
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2717
12984
3dfc4e2f531d changed: #packageName_dot_nsi
Stefan Vogel <sv@exept.de>
parents: 12965
diff changeset
  2718
SetCompressor /solid lzma
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2719
11351
cafc08a328aa Use MUI2
Stefan Vogel <sv@exept.de>
parents: 11211
diff changeset
  2720
!!include "MUI2.nsh"
14383
sr
parents: 14379
diff changeset
  2721
!!include "x64.nsh"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2722
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2723
; MUI Settings
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2724
11351
cafc08a328aa Use MUI2
Stefan Vogel <sv@exept.de>
parents: 11211
diff changeset
  2725
!!define MUI_WELCOMEPAGE_TITLE_3LINES
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2726
!!define MUI_ABORTWARNING
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2727
%(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
  2728
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_ICON "%(APPLICATION_ICON).ico"
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2729
%(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
  2730
%(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
  2731
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2732
; Language Selection Dialog Settings
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2733
!!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2734
!!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2735
!!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2736
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2737
; Welcome page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2738
!!insertmacro MUI_PAGE_WELCOME
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2739
; License page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2740
; !!define MUI_LICENSEPAGE_CHECKBOX
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2741
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2742
',(self hasLicenceToAcceptDuringInstallation 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2743
    ifTrue:['!!insertmacro MUI_PAGE_LICENSE $(license)']
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2744
    ifFalse:['']),'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2745
!!insertmacro MUI_PAGE_COMPONENTS
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2746
; Directory page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2747
!!insertmacro MUI_PAGE_DIRECTORY
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2748
; Instfiles page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2749
!!insertmacro MUI_PAGE_INSTFILES
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2750
; Finish page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2751
!!insertmacro MUI_PAGE_FINISH
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2752
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2753
; Uninstaller pages
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2754
!!insertmacro MUI_UNPAGE_INSTFILES
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2755
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2756
; Language files
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2757
!!insertmacro MUI_LANGUAGE "English"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2758
!!insertmacro MUI_LANGUAGE "German"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2759
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2760
; MUI end ------
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2761
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2762
',((self hasLicenceToAcceptDuringInstallation and:[(docDirPath := self docDirPath_win32) notEmptyOrNil])
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2763
    ifTrue:['
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2764
LicenseLangString license ${LANG_ENGLISH} "' , docDirPath , '\licence_en.txt"
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  2765
LicenseLangString license ${LANG_GERMAN}  "' , docDirPath , '\licence_de.txt"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2766
']
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2767
    ifFalse:['']),'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2768
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2769
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2770
VIProductVersion "${PRODUCT_VERSION}.0"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2771
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2772
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2773
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "%(FILE_VERSION)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2774
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2775
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2776
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "%(LEGAL_COPYRIGHT)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2777
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2778
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2779
OutFile "%(PRODUCT_FILENAME)Setup.exe"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2780
InstallDir "%(PRODUCT_INSTALLDIR)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2781
ShowInstDetails show
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2782
ShowUnInstDetails show
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2783
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2784
Function .onInit
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2785
  !!insertmacro MUI_LANGDLL_DISPLAY
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2786
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2787
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2788
InstType Full
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2789
InstType Partial
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2790
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2791
Section "Programme" Section1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2792
  SectionIn 1 2
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2793
  SetOutPath "$INSTDIR\bin"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2794
  SetOverwrite ifnewer
10419
0412cefd7206 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10418
diff changeset
  2795
  File %(DELIVERED_EXECUTABLES)
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2796
%(COMMON_FILES_TO_INSTALL)
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2797
%(ADDITIONAL_FILES_TO_INSTALL)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2798
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2799
%(FILE_EXTENSION_DEFINITION_LINES)
14383
sr
parents: 14379
diff changeset
  2800
%(DEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN)
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2801
  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
  2802
  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
  2803
  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
  2804
  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
  2805
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2806
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2807
%(SEMI_IF_NO_DOC_EXISTS)Section "Online-Documentation for %(PRODUCT_NAME)" Section2
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2808
%(SEMI_IF_NO_DOC_EXISTS)  SectionIn 1
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2809
%(SEMI_IF_NO_DOC_EXISTS)  SetOutPath "$INSTDIR\doc"
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2810
%(SEMI_IF_NO_DOC_EXISTS)  SetOverwrite ifnewer
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2811
%(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
  2812
%(SEMI_IF_NO_DOC_EXISTS)SectionEnd
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2813
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2814
;; Section "%(PRODUCT_NAME) Libraries and Demos" Section3
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2815
;;   SectionIn 1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2816
;;   SetOutPath "$INSTDIR\lib"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2817
;;   SetOverwrite ifnewer
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2818
;; ;   File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\examples\*"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2819
;; SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2820
;; 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2821
;; Section "%(PRODUCT_NAME) Reports and Printing" Section4
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2822
;;   SectionIn 1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2823
;;   SetOutPath "$INSTDIR\reportGenerator"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2824
;;   SetOverwrite ifnewer
10801
92d1002693ed comment
Stefan Vogel <sv@exept.de>
parents: 10717
diff changeset
  2825
;; ;  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
  2826
;; SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2827
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2828
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2829
%(STX_SOURCES_LINES)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2830
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2831
%(APP_SOURCES_LINES)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2832
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2833
%(ADDITIONAL_SECTIONS)
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2834
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2835
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
  2836
  SetOutPath "$INSTDIR\bin"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2837
  WriteIniStr "$INSTDIR\${PRODUCT_FILENAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2838
  CreateDirectory "$SMPROGRAMS\${PRODUCT_FILENAME}"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2839
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"
10419
0412cefd7206 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10418
diff changeset
  2840
  CreateShortCut "$DESKTOP\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2841
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" "$INSTDIR\${PRODUCT_FILENAME}.url"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2842
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" "$INSTDIR\uninst.exe"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2843
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2844
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2845
Section -Post
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2846
  WriteUninstaller "$INSTDIR\uninst.exe"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2847
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2848
  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
  2849
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2850
  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
  2851
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2852
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2853
17578
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
  2854
LangString appOpen ${LANG_GERMAN}  "Mit %(PRODUCT_NAME) öffnen"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2855
LangString appOpen ${LANG_ENGLISH} "Open with %(PRODUCT_NAME)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2856
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2857
LangString DESC_Section1 ${LANG_ENGLISH} "Program components of %(PRODUCT_NAME)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2858
LangString DESC_Section1 ${LANG_GERMAN}  "Alle Programmkomponenten von %(PRODUCT_NAME)"
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2859
%(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
  2860
%(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
  2861
;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2862
;; LangString DESC_Section3 ${LANG_GERMAN}  "Bibliotheken und Beispielprojekte"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2863
;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2864
;; LangString DESC_Section4 ${LANG_GERMAN}  "Drucken und Report-Generierung aus Log-Dateien"
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2865
%(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
  2866
%(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
  2867
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_ENGLISH} "Sources of %(PRODUCT_NAME)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2868
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_GERMAN}  "Quellcode von %(PRODUCT_NAME)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2869
%(ADDITIONAL_SECTIONS_DESCRIPTIONS)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2870
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2871
!!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2872
  !!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  2873
%(SEMI_IF_NO_DOC_EXISTS)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2874
%(SEMI_IF_NO_STX_SOURCES)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2875
%(SEMI_IF_NO_APP_SOURCES)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  2876
%(ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2877
!!insertmacro MUI_FUNCTION_DESCRIPTION_END
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2878
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2879
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2880
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2881
Function un.onUninstSuccess
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2882
  HideWindow
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2883
  MessageBox MB_ICONINFORMATION|MB_OK "%(PRODUCT_NAME) wurde erfolgreich deinstalliert"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2884
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2885
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2886
Function un.onInit
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2887
!!insertmacro MUI_UNGETLANGUAGE
17578
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
  2888
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Möchten Sie %(PRODUCT_NAME) und alle seine Komponenten deinstallieren?" IDYES +2
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2889
  Abort
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2890
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2891
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2892
Section Uninstall
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2893
  Delete "$INSTDIR\${PRODUCT_FILENAME}.url"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2894
  Delete "$INSTDIR\uninst.exe"
10626
e6ce341ac09b *** empty log message ***
fm
parents: 10575
diff changeset
  2895
%(DIRECTORY_UNINSTALL_LINES)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2896
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2897
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2898
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2899
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2900
  Delete "$DESKTOP\%(APPLICATION).lnk"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2901
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2902
  RMDir "$SMPROGRAMS\${PRODUCT_FILENAME}"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2903
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2904
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2905
  DeleteRegKey HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2906
%(FILE_EXTENSION_UNDEFINITION_LINES)
14383
sr
parents: 14379
diff changeset
  2907
%(UNDEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2908
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2909
  SetAutoClose true
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2910
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2911
'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2912
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2913
     bosch_dapasx_application packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2914
     bosch_dapasx_application generateFile:'dapasx.nsi'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2915
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2916
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2917
    "Modified: / 09-08-2006 / 15:10:57 / fm"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2918
    "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
  2919
    "Modified: / 15-05-2007 / 17:22:37 / cg"
14383
sr
parents: 14379
diff changeset
  2920
    "Modified: / 12-10-2012 / 11:59:45 / sr"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2921
!
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  2922
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2923
packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2924
    "the template code for the <appname>.rc file"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2925
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2926
^ 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2927
'//
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2928
// DO NOT EDIT 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2929
// automagically generated from the projectDefinition: ',self name,'.
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2930
//
11376
ba75adbf6a62 splash file definition
Claus Gittinger <cg@exept.de>
parents: 11351
diff changeset
  2931
#define IDR_MAINFRAME   128
ba75adbf6a62 splash file definition
Claus Gittinger <cg@exept.de>
parents: 11351
diff changeset
  2932
#define IDR_SPLASH      129
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2933
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  2934
#if (__BORLANDC__)
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2935
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  2936
#endif
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  2937
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2938
#pragma code_page(1252)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2939
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2940
%(ICONDEFINITION_LINE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2941
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2942
VS_VERSION_INFO VERSIONINFO
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2943
  FILEVERSION     %(FILE_VERSION_COMMASEPARATED)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2944
  PRODUCTVERSION  %(PRODUCT_VERSION_COMMASEPARATED)
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  2945
#if (__BORLANDC__)
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2946
  FILEFLAGSMASK   VS_FF_DEBUG | VS_FF_PRERELEASE
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2947
  FILEFLAGS       VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2948
  FILEOS          VOS_NT_WINDOWS32
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2949
  FILETYPE        %(FILETYPE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2950
  FILESUBTYPE     VS_USER_DEFINED
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  2951
#else
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  2952
  FILEFLAGSMASK 0x3fL
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  2953
#endif
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2954
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2955
BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2956
  BLOCK "StringFileInfo"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2957
  BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2958
    BLOCK "040904E4"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2959
    BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2960
      VALUE "CompanyName", "%(COMPANY_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2961
      VALUE "FileDescription", "%(FILE_DESCRIPTION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2962
      VALUE "FileVersion", "%(FILE_VERSION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2963
      VALUE "InternalName", "%(INTERNAL_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2964
%(LEGAL_COPYRIGHT_LINE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2965
      VALUE "ProductName", "%(PRODUCT_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2966
      VALUE "ProductVersion", "%(PRODUCT_VERSION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2967
      VALUE "ProductDate", "%(PRODUCT_DATE)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2968
    END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2969
  END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2970
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2971
  BLOCK "VarFileInfo"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2972
  BEGIN                               //  Language   |    Translation
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2973
    VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2974
  END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2975
END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2976
'
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2977
    "
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2978
     stx_libbasic3 packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2979
     stx_libbasic3 generate_packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2980
    "
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2981
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2982
    "Modified: / 09-08-2006 / 15:10:57 / fm"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2983
    "Created: / 30-08-2006 / 18:41:47 / cg"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2984
!
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2985
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2986
preRequisiteLine_bc_dot_mak
10381
9118d27357a9 make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents: 10379
diff changeset
  2987
    ^
12960
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2988
'%(FILE_NAME).dll: %(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2989
        copy %(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll *.*
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  2990
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2991
%(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll: $(FORCE)
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2992
        pushd %(MODULE_DIRECTORY) & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2993
'
9900
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
  2994
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2995
    "Modified: / 26-07-2010 / 12:26:10 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2996
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2997
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2998
preRequisiteLine_make_dot_proto
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2999
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3000
    "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
  3001
     is required!!"
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3002
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3003
    ^
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3004
'%(FILE_NAME).so: %(MODULE_DIRECTORY)/%(FILE_NAME).so
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  3005
        ln -sf %(MODULE_DIRECTORY)/%(FILE_NAME).so .
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  3006
15391
3652287f82e9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15370
diff changeset
  3007
%(MODULE_DIRECTORY)/%(FILE_NAME).so: %(MODULE_DIRECTORY)/makefile $(FORCE)
15602
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3008
        @if [ -f "%(MODULE_DIRECTORY)/.NOSOURCE" ]; then \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3009
            echo "skip make in %(MODULE_DIRECTORY) (no source)"; \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3010
        else \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3011
            cd %(MODULE_DIRECTORY) && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3012
        fi
15391
3652287f82e9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15370
diff changeset
  3013
15392
cf68e96d7051 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15391
diff changeset
  3014
%(MODULE_DIRECTORY)/makefile: %(MODULE_DIRECTORY)/Make.proto
cf68e96d7051 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15391
diff changeset
  3015
        $(TOP)/rules/stmkmf --cd %(MODULE_DIRECTORY)
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3016
'
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3017
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3018
    "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
  3019
!
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3020
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  3021
subProjectLine_bc_dot_mak
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3022
^'%(LIBRARY_NAME).dll: %(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3023
        copy %(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll *.*
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3024
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3025
%(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll:
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  3026
        pushd %(PATH_TO_SUB_PROJECT) & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3027
'
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  3028
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  3029
    "Modified: / 26-07-2010 / 12:26:01 / cg"
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3030
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3031
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3032
subProjectLine_make_dot_proto
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3033
^'%(LIBRARY_NAME).so: %(PATH_TO_SUB_PROJECT)/%(LIBRARY_NAME).so
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3034
        ln -sf %(PATH_TO_SUB_PROJECT)/%(LIBRARY_NAME).so .
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3035
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3036
%(PATH_TO_SUB_PROJECT)/%(LIBRARY_NAME).so: %(PATH_TO_SUB_PROJECT)/makefile
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  3037
        cd %(PATH_TO_SUB_PROJECT) && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES)"
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3038
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3039
%(PATH_TO_SUB_PROJECT)/makefile: %(PATH_TO_SUB_PROJECT)/Make.proto
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3040
        $(TOP)/rules/stmkmf --cd %(PATH_TO_SUB_PROJECT)
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3041
'
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3042
!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3043
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3044
undefineExtenionLine_nsi_for:extension
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3045
    "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
  3046
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3047
^ 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3048
'  DeleteRegKey HKCR ".',extension,'"'
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3049
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3050
    "Created: / 15-10-2006 / 12:51:00 / cg"
15393
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3051
!
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3052
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3053
undefineExtensionLine_nsi_for:extension
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3054
    "the template code for a single extenions undefinition line in the <appname>.nsi file"
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3055
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3056
^ 
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3057
'  DeleteRegKey HKCR ".',extension,'"'
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3058
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3059
    "Created: / 15-10-2006 / 12:51:00 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3060
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3061
9813
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3062
!ApplicationDefinition class methodsFor:'queries'!
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3063
17243
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3064
definitionClassOfApplicationBundle
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3065
    "Return the applicationDefinition of the applicationBundle or nil. 
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3066
     This is the applicationDefinition of the package which gets actually deployed.
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3067
     This information is currently used for automatic check of language translations.
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3068
     Here, ssume that I am the bundle.
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3069
     Redefine in other applications if that is not true."
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3070
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3071
    ^ self
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3072
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3073
    "
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3074
     exept_expecco definitionClassOfApplicationBundle    
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3075
     exept_expecco_application definitionClassOfApplicationBundle    
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3076
     exept_expecco_plugin_swt definitionClassOfApplicationBundle    
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3077
    "
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3078
!
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3079
12332
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3080
projectType
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3081
    ^ self isGUIApplication
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3082
        ifTrue:[ GUIApplicationType  ]
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3083
        ifFalse:[ NonGUIApplicationType ]
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3084
!
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3085
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3086
shouldBeLoadedInitially:aProjectID
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3087
    "answer true, if a class should not be loaded initially,
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3088
     but explicitly later by the application"
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3089
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3090
    |initiallyLoaded|
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3091
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3092
    initiallyLoaded := self initiallyLoadedPreRequisites.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3093
    initiallyLoaded isNil ifTrue:[
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3094
        ^ true.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3095
    ].
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3096
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3097
    ^ initiallyLoaded includes:aProjectID
9813
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3098
! !
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3099
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3100
!ApplicationDefinition class methodsFor:'sanity checks'!
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3101
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3102
validateDescription
13807
733feed2f27c comment
Claus Gittinger <cg@exept.de>
parents: 13739
diff changeset
  3103
    "perform some consistency checks (set of classes in project same as those listed in description);
733feed2f27c comment
Claus Gittinger <cg@exept.de>
parents: 13739
diff changeset
  3104
     called before checking in build support files"
733feed2f27c comment
Claus Gittinger <cg@exept.de>
parents: 13739
diff changeset
  3105
9958
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3106
    super validateDescription.
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3107
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3108
    #(
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3109
        startupClassName
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3110
"/        startupSelector
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3111
    ) do:[:sel |
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
  3112
        (self theMetaclass includesSelector:sel) ifFalse:[
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3113
            Dialog 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3114
                warn:('The %1-method is missing from the description %2!!' 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3115
                        bindWith:sel allBold
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3116
                        with:self name allBold).
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3117
            AbortSignal raise.
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3118
        ].
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3119
        (Error catch:[ self perform:sel ]) ifTrue:[
14371
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3120
            (Dialog 
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3121
                confirm:('The %1-method needs to be edited in the description %2!!\\Continue anyway?' 
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3122
                        bindWith:sel allBold
14371
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3123
                        with:self name allBold) withCRs) ifFalse:[
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3124
                AbortSignal raise.
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3125
            ].
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3126
        ].
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3127
    ].
9958
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3128
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3129
    "Modified: / 19-09-2006 / 20:17:38 / cg"
13807
733feed2f27c comment
Claus Gittinger <cg@exept.de>
parents: 13739
diff changeset
  3130
    "Modified (comment): / 31-10-2011 / 10:58:03 / cg"
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3131
! !
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3132
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3133
!ApplicationDefinition class methodsFor:'testing'!
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3134
12311
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  3135
isAbstract
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  3136
    ^ self == ApplicationDefinition
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  3137
!
2b118bf403bd added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents: 12306
diff changeset
  3138
9669
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  3139
isApplicationDefinition
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
  3140
    ^ self isAbstract not
9669
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  3141
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  3142
    "Created: / 23-08-2006 / 15:17:38 / cg"
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3143
! !
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3144
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3145
!ApplicationDefinition class methodsFor:'documentation'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3146
13731
7878d9e511ab changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13730
diff changeset
  3147
version
18501
1e7170250a51 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 18429
diff changeset
  3148
    ^ '$Header$'
13731
7878d9e511ab changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13730
diff changeset
  3149
!
7878d9e511ab changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13730
diff changeset
  3150
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  3151
version_CVS
18501
1e7170250a51 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 18429
diff changeset
  3152
    ^ '$Header$'
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  3153
!
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  3154
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  3155
version_SVN
15228
bd8559a81c36 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15218
diff changeset
  3156
    ^ '$ Id: ApplicationDefinition.st 10645 2011-06-09 15:28:45Z vranyj1  $'
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3157
! !
14645
29bcfa6db618 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14541
diff changeset
  3158