ApplicationDefinition.st
author Stefan Vogel <sv@exept.de>
Mon, 15 Apr 2019 19:34:25 +0200
changeset 24082 6995fb26bd13
parent 24054 d4a4ba52405d
child 24360 059c9647fe9e
permissions -rw-r--r--
#REFACTORING by stefan class: Dictionary changed: #addAll: OrderedDictionaries are no longer #isSequnceable
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     1
"
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     3
              All Rights Reserved
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     4
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     5
 This software is furnished under a license and may be used
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     6
 only in accordance with the terms of that license and with the
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     8
 be provided or otherwise made available to, or used by, any
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
     9
 other person.  No title to or ownership of the software is
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    10
 hereby transferred.
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    11
"
9671
cb20763db715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9669
diff changeset
    12
"{ Package: 'stx:libbasic' }"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    13
17578
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
    14
"{ NameSpace: Smalltalk }"
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
    15
9567
dff3e4bd9de2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9557
diff changeset
    16
ProjectDefinition subclass:#ApplicationDefinition
19995
c4be724738fa #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19963
diff changeset
    17
	instanceVariableNames:''
c4be724738fa #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19963
diff changeset
    18
	classVariableNames:''
c4be724738fa #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19963
diff changeset
    19
	poolDictionaries:''
c4be724738fa #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19963
diff changeset
    20
	category:'System-Support-Projects'
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    21
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
    22
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    23
!ApplicationDefinition class methodsFor:'documentation'!
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    24
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    25
copyright
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 (c) 2006 by eXept Software AG
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    28
              All Rights Reserved
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    29
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    30
 This software is furnished under a license and may be used
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    31
 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
    32
 inclusion of the above copyright notice.   This software may not
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    33
 be provided or otherwise made available to, or used by, any
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    34
 other person.  No title to or ownership of the software is
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    35
 hereby transferred.
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    36
"
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    37
!
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    38
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    39
documentation
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    40
"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    41
    subclasses provide the info on the contents of a package/project and
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    42
    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
    43
    Actually, subclasses MUST be subclasses of the two abstract classes LibraryDefinition or
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    44
    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
    45
    make/build/load process.
d85d144cd661 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15217
diff changeset
    46
    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
    47
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
    48
    Concrete definition classes MUST redefine:
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    49
        classNamesAndAttributes
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    50
                                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
    51
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    52
        extensionMethodNames
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    53
                                list of extension methods
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    54
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    55
        startupClassName / startupSelector
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    56
                                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
    57
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    58
        buildTarget             name of the generated exe-file
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
        
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    61
    should redefine:
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    62
        preRequisites           list of required packages
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    63
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    64
        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
    65
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    66
        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
    67
                                as attribute of a .dll or .exe
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    68
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    69
        description             short description; shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    70
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    71
        legalCopyright          copyright message; 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
        productName             product name; shown by windows explorer
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    74
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    75
        applicationName         app 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
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    78
    might redefine:    
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    79
        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
    80
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    81
        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
    82
                                (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
    83
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    84
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
    85
    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
    86
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    87
    [author:]
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    88
        Felix Madrid
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    89
        Claus Gittinger
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    90
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    91
    [see also:]
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    92
        stx_projects_smalltalk
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    93
        stx_libbasic
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    94
        stx_libbasic2
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
    95
"
9552
4f4b3f5cfc53 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9542
diff changeset
    96
! !
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
    97
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
    98
!ApplicationDefinition class methodsFor:'accessing'!
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
    99
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   100
appSourcesProjects
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   101
    "Returns only the application projects (which are included in the application module)"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   102
20201
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   103
    ^ self effectivePreRequisites
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   104
        select:[:each |
19474
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
   105
            (self moduleFor: each) = self module
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
   106
        ].
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   107
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   108
    "
19474
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
   109
     bosch_dapasx_application appSourcesProjects
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   110
    "
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   111
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   112
14229
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   113
startupClass
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
   114
    "the class, but only if loaded"
14229
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   115
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   116
    |cls|
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   117
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   118
    Error 
22379
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   119
        handle:[:ex | 
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   120
            cls := nil
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   121
        ] 
14229
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   122
        do:[
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   123
            |clsName|
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   124
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   125
            clsName := self startupClassName.
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   126
            cls := Smalltalk classNamed:clsName.
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   127
        ].
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   128
    ^ cls
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   129
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   130
    "Created: / 20-07-2012 / 16:37:36 / cg"
22379
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   131
    "Modified: / 28-11-2017 / 14:02:11 / cg"
14229
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   132
!
622a645aab33 added: #startupClass
Claus Gittinger <cg@exept.de>
parents: 14061
diff changeset
   133
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   134
stxSourcesProjects
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   135
    "Returns only the required STX projects (which are included in the STX module)"
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   136
14841
308ec8e1c88d class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14814
diff changeset
   137
    ^ self effectivePreRequisites select:[:each | 
308ec8e1c88d class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14814
diff changeset
   138
        (self moduleFor: each) = (self moduleFor: #stx)
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   139
    ].
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   140
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   141
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   142
        bosch_dapasx_application stxSourcesProjects
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   143
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   144
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   145
    "
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   146
    #(
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   147
       'libbasic' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   148
       'libbasic2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   149
       'libcomp' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   150
       'libview' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   151
       'libview2'
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   152
       'libwidg' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   153
       'libwidg2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   154
       'libtool' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   155
       'libtool2' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   156
       'libhtml' 
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   157
       'libui'
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
   158
    )
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
   159
    "
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   160
! !
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   161
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   162
!ApplicationDefinition class methodsFor:'code generation'!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   163
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   164
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition
15053
dd4e354a7a78 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14989
diff changeset
   165
    "redefined to add application stuff, such as definitions for the app-icon, 
dd4e354a7a78 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14989
diff changeset
   166
     startup class and installation directory"
dd4e354a7a78 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14989
diff changeset
   167
20596
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   168
    |spec1 spec2|
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   169
    
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   170
    super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   171
20596
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   172
    spec1 := #().
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   173
    self isGUIApplication ifTrue:[
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   174
        spec1 := 
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   175
            #(
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   176
                (applicationIconFileNameWindows applicationIconFileNameWindows_code 'description - project information')
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   177
                (applicationIconFileNameLinux applicationIconFileNameLinux_code 'description - project information')
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   178
                (applicationIconFileNameOSX applicationIconFileNameOSX_code 'description - project information')
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   179
            )
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   180
    ].
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   181
    spec2 := 
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   182
        #(
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   183
            "/ Not needed, done in ProjectDefinition>>forEachMethodsCodeToCompileDo:ignoreOldDefinition:
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   184
            "/ (subProjects subProjects_code 'description')
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   185
            (productInstallDirBaseName productInstallDirBaseName_code 'description - project information')
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   186
            (startupClassName startupClassName_code 'description - startup')
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   187
            (startupSelector startupSelector_code 'description - startup')
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   188
        ).
6c34f0777523 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20589
diff changeset
   189
    (spec1 , spec2) triplesDo:[:selector :codeMethodSelector :category|
14884
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   190
        (self class includesSelector:selector) ifFalse:[
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   191
            aTwoArgBlock
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   192
                value: (self perform:codeMethodSelector)
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   193
                value: category.
e9f7c2641cc9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14878
diff changeset
   194
        ].
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   195
    ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   196
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   197
    "Created: / 10-08-2006 / 16:35:47 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   198
    "Modified: / 30-08-2006 / 19:03:48 / cg"
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
   199
    "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
   200
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   201
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   202
startupClassName_code
20569
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   203
    "generate code that answers the startupClass."
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   204
    
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   205
    |classes startClasses mainClasses appClasses|
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   206
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   207
    classes := self classNamesAndAttributes 
16336
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   208
                collect:[:nmOrPair | 
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   209
                            |nm| 
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   210
                            nm := nmOrPair isArray ifTrue:[nmOrPair first] ifFalse:[nmOrPair].
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   211
                            Smalltalk classNamed:nm
3bd14ee1acde class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16327
diff changeset
   212
                        ] 
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   213
                thenSelect:[:cls | cls notNil and:[cls isProjectDefinition not ]].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   214
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   215
    mainClasses := classes select:[:each | each theMetaclass includesSelector:#main ].
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   216
    mainClasses size == 1 ifTrue:[
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   217
        ^ self startupClassName_codeFor:(mainClasses first name)
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   218
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   219
    mainClasses isEmpty ifTrue:[
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
   220
        startClasses := classes select:[:each | each theMetaclass includesSelector:#start ].
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   221
        startClasses size == 1 ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   222
            ^ self startupClassName_codeFor:(startClasses first name)
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   223
        ].
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   224
        startClasses isEmpty ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   225
            appClasses := classes select:[:each | each isSubclassOf:ApplicationModel ].
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   226
            appClasses size == 1 ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   227
                ^ self startupClassName_codeFor:(appClasses first name)
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   228
            ].
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   229
        ]
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   230
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   231
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   232
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   233
'startupClassName
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   234
    "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
   235
     Usually, the name of a subclass of StandAloneStartup."
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   236
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   237
    self error:''undefined startupClass''.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   238
    ^ ''<name of class here>''
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   239
'
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   240
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   241
    "Modified: / 27-12-2006 / 11:43:34 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   242
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   243
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   244
startupClassName_codeFor:aClassName
20569
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   245
    "code that answers aClassName as the startupClass."
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   246
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   247
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   248
'startupClassName
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   249
    "the class that starts the show in its startupSelector method"
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   250
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   251
    ^ ''',aClassName,'''
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   252
'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   253
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   254
    "Created: / 05-09-2006 / 13:40:32 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   255
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   256
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   257
startupSelector_code
22379
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   258
    "generate code that answers the startupSelector.
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   259
     Checks if #open or #start are to be used for the startupClass."
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   260
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   261
    |cls sel|
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   262
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   263
    cls := self startupClass.
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   264
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   265
    sel := #start.
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   266
    cls notNil ifTrue:[
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   267
        (cls respondsTo:#open) ifTrue:[
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
   268
            sel := #open
10283
e12b5f734e4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10275
diff changeset
   269
        ].
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   270
    ].
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   271
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   272
    ^ self startupSelector_codeFor:sel
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   273
22379
6ba8f68b0814 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22361
diff changeset
   274
    "Modified (comment): / 28-11-2017 / 14:01:56 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   275
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   276
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   277
startupSelector_codeFor:aSelector
20569
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   278
    "generate code that answers aSelector as the startupSelector."
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   279
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   280
    ^ 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   281
'startupSelector
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   282
    "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
   283
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   284
    ^ #''',aSelector,'''        
10000
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
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   287
    "Created: / 05-09-2006 / 13:41:01 / cg"
10275
0fd6fc123995 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10272
diff changeset
   288
    "Modified: / 15-12-2006 / 14:10:11 / cg"
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   289
!
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   290
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   291
subProjects_code        
20569
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   292
    "generate code which returns a collection of subproject names."
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   293
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   294
    |subProjects|
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
    subProjects := 
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   297
        (self siblingsAreSubProjects)
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   298
            ifTrue:[ self searchForSiblingProjects ]
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   299
            ifFalse:[ self searchForSubProjects ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   300
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   301
    subProjects removeAll: self excludedFromSubProjects.
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
    ^ String streamContents:[:s |
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   304
        s nextPutLine:'subProjects'.
12424
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   305
        s nextPutLine:'    "list packages which are known as subprojects.'.
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   306
        s nextPutLine:'     This method is generated automatically; however, when generating automatically,'. 
6bb11a66f094 changed:5 methods
Claus Gittinger <cg@exept.de>
parents: 12366
diff changeset
   307
        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
   308
        s nextPutLine:''.
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   309
        s nextPutLine:'    ^ #('.
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   310
        subProjects do:[:eachPackageID |    
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   311
            s nextPutLine:eachPackageID asString storeString
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   312
        ].      
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   313
        s nextPutLine:')'
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   314
    ].
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   315
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   316
    "
20569
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   317
     bosch_dapasx subProjects_code
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   318
     stx_goodies subProjects_code
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   319
     exept_expecco subProjects_code
10000
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   320
    "
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   321
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   322
    "Modified: / 08-08-2006 / 19:24:34 / fm"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   323
    "Created: / 17-08-2006 / 21:26:51 / cg"
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   324
! !
c9ccef36dcb3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
   325
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   326
!ApplicationDefinition class methodsFor:'defaults'!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   327
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   328
buildTarget
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   329
    "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
   330
     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
   331
     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
   332
     Here, 'ALL' is returned.
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
   333
     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
   334
     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
   335
     put often build new executables..."
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   336
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   337
     ^ 'ALL'
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   338
!
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   339
11801
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   340
extraTargets
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   341
    "extra targets to be built when creating the exe"
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   342
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   343
     self needResources ifTrue:[
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   344
        ^ #('RESOURCEFILES')
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   345
     ].
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   346
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   347
     ^ #()
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   348
!
e3f0fc0c29b7 define #extraTargets
Stefan Vogel <sv@exept.de>
parents: 11791
diff changeset
   349
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   350
guiClassFileNames_unix
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   351
    ^ self guiClasses_unix 
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   352
        collect:[:cls | (cls classBaseFilename asFilename withSuffix:'so') baseName].
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   353
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   354
    "Created: / 14-09-2006 / 18:13:22 / cg"
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   355
    "Modified: / 12-10-2006 / 15:50:39 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   356
!
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   357
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   358
guiClassFileNames_win32
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   359
    ^ self guiClasses_win32 
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   360
        collect:[:cls | (cls classBaseFilename asFilename withSuffix:'dll') baseName].
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   361
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   362
    "Created: / 07-09-2006 / 17:23:13 / cg"
10079
8c9d3fdf345e use classBaseFilename
Claus Gittinger <cg@exept.de>
parents: 10038
diff changeset
   363
    "Modified: / 12-10-2006 / 15:50:42 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   364
!
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   365
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   366
guiClasses_unix
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   367
    ^ #()
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   368
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   369
    "Created: / 14-09-2006 / 18:12:58 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   370
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   371
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   372
guiClasses_win32
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   373
    ^ #()
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   374
    "/ ^ Array with:XWorkstation
9833
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   375
60fba527f5b0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9830
diff changeset
   376
    "Created: / 07-09-2006 / 17:22:27 / cg"
9886
6574a17ca51e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9854
diff changeset
   377
    "Modified: / 14-09-2006 / 18:12:35 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   378
!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   379
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   380
needResources
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   381
    "answer true, if this application
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   382
     needs resources to be installed. This is normally true.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   383
     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
   384
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   385
    ^ true 
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   386
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   387
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   388
!ApplicationDefinition class methodsFor:'description'!
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   389
21502
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   390
additionalFilesToInstall_osx
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   391
    "Each entry gives a pattern of a file to be copied and a destination directory.
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   392
     Can be redefined in subclasses to install additional files under the Contents/MacOS folder;
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   393
     to get to a parent folder, pass in a string like '../Library/...'
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   394
     (keeping OSX specific stuff away from general things, like expecco libs)."
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   395
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   396
    ^ #()
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   397
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   398
    "Created: / 21-02-2017 / 15:17:33 / cg"
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   399
!
cd414d26eacf #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21501
diff changeset
   400
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   401
additionalFilesToInstall_unix
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   402
    "application-specific files to be installed.
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   403
     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
   404
     Can be redefined in subclasses."
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   405
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   406
    ^ #()
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   407
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   408
    "Created: / 01-03-2007 / 20:02:21 / cg"
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   409
!
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   410
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   411
additionalFilesToInstall_win32
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   412
    "application-specific files to be installed.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   413
     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
   414
     Can be redefined in subclasses."
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   415
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   416
    ^ #()
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   417
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   418
    "Created: / 01-03-2007 / 20:02:21 / cg"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   419
!
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
   420
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   421
additionalResourceTargets
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   422
    "application-specific additional resource targets to be invoked.
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   423
     Can be redefined in subclasses."
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   424
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   425
    ^ #()
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   426
!
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
   427
21508
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   428
additionalTargetDirectoriesToMakeForInstall_osx
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   429
    "Each entry gives an additional target library to be created under the Contents/MacOS folder;
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   430
     to get aadditional parent folder, pass in strings like '../Library/...'"
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   431
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   432
    ^ #()
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   433
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   434
    "Created: / 21-02-2017 / 18:00:02 / cg"
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   435
!
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
   436
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   437
applicationIconFileName
11073
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   438
    "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
   439
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   440
     Subclasses MUST redefine this to either return the name of the icon file or
20201
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   441
     nil, if they do not have one.
11073
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   442
     We NO LONGER SUPPORT THE PREVIOUS APPNAME-DEFAULT,
dafd7ac86d27 icon filename - no longer automatic default
sr
parents: 11040
diff changeset
   443
     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
   444
15071
1bea05335b71 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15053
diff changeset
   445
    ^ self subclassResponsibility.
10423
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   446
!
90991b0a279b applicationIcon
Claus Gittinger <cg@exept.de>
parents: 10420
diff changeset
   447
11082
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   448
applicationInstallIconFileName
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   449
    "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
   450
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   451
     Default is the same as the application icon"
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   452
23384
ee821b8c3c9f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23383
diff changeset
   453
    ^ self applicationIconFileNameWindows.
ee821b8c3c9f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23383
diff changeset
   454
ee821b8c3c9f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23383
diff changeset
   455
    "Modified: / 24-09-2018 / 12:46:07 / Claus Gittinger"
11082
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   456
!
a2b58f779f32 extra install icon
Stefan Vogel <sv@exept.de>
parents: 11073
diff changeset
   457
10302
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   458
applicationName
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   459
    "answer the name of the application.
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   460
     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
   461
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   462
     Subclasses may redefine this"
8b6235498f47 Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents: 10300
diff changeset
   463
10420
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   464
    ^ self applicationNameFromPackage
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   465
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   466
    "
20201
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   467
     bosch_dapasx_application applicationName
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   468
     stx_projects_smalltalk applicationName
10420
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   469
    "
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   470
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   471
    "Created: / 08-08-2006 / 20:25:39 / fm"
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   472
    "Modified: / 30-08-2006 / 19:29:25 / cg"
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   473
!
ffcde50f7049 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10419
diff changeset
   474
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   475
documentExtensions
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   476
    "list extensions which should be registered with the application.
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   477
     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
   478
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   479
    ^ #()
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   480
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   481
    "Created: / 15-10-2006 / 12:44:14 / cg"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   482
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   483
14814
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   484
includedInPreRequisites
17578
21ce684d369f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17243
diff changeset
   485
    "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
   486
     even if not found by the automatic search.
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   487
     Redefine this, if classes from other packages are referred to via reflection
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   488
     or by constructing names dynamically (i.e. the search cannot find it)"
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   489
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   490
    ^ self isGUIApplication ifTrue:[
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   491
        #(
14867
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   492
            #'stx:libcomp'   "/ to read the rc file
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   493
            #'stx:libbasic2' "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   494
            #'stx:libview'   "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   495
            #'stx:libview2'  "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   496
            #'stx:libwidg'   "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   497
            #'stx:libwidg2'  "/ UI framework
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   498
            #'stx:libui'     "/ UI framework
14814
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   499
        )
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   500
    ] ifFalse:[
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   501
        #(
14867
e9141cf777a9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14857
diff changeset
   502
            #'stx:libcomp'   "/ to read the rc file
14814
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   503
        )
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   504
    ].
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   505
!
e020135351c8 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14811
diff changeset
   506
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   507
initiallyLoadedPreRequisites
22361
2f5eb951b685 #DOCUMENTATION by mawalch
mawalch
parents: 22313
diff changeset
   508
   "Prerequisites packages that are not to be loaded at application startup, but
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   509
    that maybe loaded later by the application.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   510
    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
   511
    an already running application to e.g. open an additional window."
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   512
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   513
    ^ nil       "the default, nil means: all prerequisites should be loaded initially"
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   514
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   515
"/    ^ #(
22361
2f5eb951b685 #DOCUMENTATION by mawalch
mawalch
parents: 22313
diff changeset
   516
"/        #'stx:libbasic'
2f5eb951b685 #DOCUMENTATION by mawalch
mawalch
parents: 22313
diff changeset
   517
"/        #'stx:libbasic2'
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   518
"/        #'stx:libcomp'
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   519
"/    )
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   520
!
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
   521
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   522
isGUIApplication
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   523
    "Return true, if this is a GUI app. 
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   524
     Redefine to return false for non-GUI applications (affects inclusion of Display classes)."
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   525
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   526
    ^true
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   527
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
   528
    "Created: / 08-08-2006 / 11:15:01 / fm"
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   529
    "Modified: / 17-08-2006 / 19:47:36 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   530
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   531
9823
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   532
isSingleThreadedApplication
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   533
    "Return true, if this should be started without multiple threads. 
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   534
     (not possible with gui applications)"
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   535
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   536
    ^false
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   537
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   538
    "Created: / 05-09-2006 / 13:36:18 / cg"
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   539
!
fb8bc237f370 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9816
diff changeset
   540
10418
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   541
logFilenameNoConsole
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   542
    "/ ^ (self applicationNameNoConsole , '_%d.log')
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
   543
    ^ (self applicationName , '.log')
10418
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   544
!
6aec9d860022 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10415
diff changeset
   545
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   546
mainDefines
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   547
    ^ '-DIGNORE_IMAGE -DNO_DISPLAY'
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   548
!
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
   549
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
   550
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
   551
    "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
   552
     Return true, if this should be built as a console application.
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   553
     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
   554
11674
93f6efe73132 Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11656
diff changeset
   555
    ^ 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
   556
!
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
   557
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
   558
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
   559
    "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
   560
     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
   561
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
   562
    ^ 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
   563
!
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
   564
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   565
offerApplicationSourceCode
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   566
    "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
   567
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   568
    ^ false
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   569
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   570
    "Created: / 15-05-2007 / 16:46:05 / cg"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   571
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   572
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   573
offerSmalltalkSourceCode
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   574
    "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
   575
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   576
    ^ false
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   577
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   578
    "Created: / 15-05-2007 / 16:46:18 / cg"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   579
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
   580
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
   581
osxDmgBackgroundImageFile
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
   582
    ^ nil
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
   583
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
   584
    "Created: / 23-02-2017 / 02:17:04 / cg"
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
   585
!
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
   586
21570
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
   587
osxVolumeIconImageFileName
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
   588
    ^ nil
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
   589
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
   590
    "Created: / 24-02-2017 / 12:50:53 / cg"
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
   591
!
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
   592
14383
sr
parents: 14379
diff changeset
   593
runAsAdmin
sr
parents: 14379
diff changeset
   594
    "WINDOWS only!! Optionally used by NSI installer.
sr
parents: 14379
diff changeset
   595
     defines a registry entry,
sr
parents: 14379
diff changeset
   596
     which sets RUNASADMIN file attribute to the noconsole application exe"
sr
parents: 14379
diff changeset
   597
    ^ false
sr
parents: 14379
diff changeset
   598
sr
parents: 14379
diff changeset
   599
    "Created: / 12-10-2012 / 10:19:56 / sr"
sr
parents: 14379
diff changeset
   600
!
sr
parents: 14379
diff changeset
   601
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
   602
startupClassName
20544
337f2148be55 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20202
diff changeset
   603
    "return he name of the class which provides the entry point for the application;
337f2148be55 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20202
diff changeset
   604
     a fully specified symbol or string."
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   605
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   606
    self subclassResponsibility
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   607
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   608
    "Modified: / 17-08-2006 / 20:00:22 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   609
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   610
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
   611
startupSelector
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   612
    "The name of the entry point method (in startUpClass) used to start the application."
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   613
10379
d8b54dc361d2 Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents: 10378
diff changeset
   614
    ^ #start
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   615
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   616
    "Modified: / 17-08-2006 / 20:01:00 / cg"
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   617
! !
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   618
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   619
!ApplicationDefinition class methodsFor:'description - private'!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   620
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   621
applicationNameConsole
20570
2e58e2877032 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20569
diff changeset
   622
    "only used for windows builds"
2e58e2877032 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20569
diff changeset
   623
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   624
    ^ self applicationName, '.com'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   625
!
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
applicationNameFromPackage
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   628
    "answer the name of the application.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   629
     This is also the name of the generated .exe file.
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
     Subclasses may redefine this"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   632
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   633
    |m path|
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   634
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   635
    m := self moduleDirectory.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   636
    path := m subStrings:$/.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   637
    path last = 'application' ifTrue:[
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   638
        path size > 1 ifTrue:[
15166
6dd961ea0806 Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents: 15071
diff changeset
   639
            path := path copyButLast:1.
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   640
        ].
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   641
    ].
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   642
    ^ path last
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   643
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   644
    "
20569
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   645
     stx_projects_smalltalk applicationNameFromPackage
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   646
     exept_expecco_application applicationNameFromPackage
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   647
     bosch_dapasx_application applicationNameFromPackage
bab0063e100a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20545
diff changeset
   648
     alspa_batch_application applicationNameFromPackage
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   649
    "
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   650
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   651
    "Created: / 08-08-2006 / 20:25:39 / fm"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   652
    "Modified: / 05-09-2012 / 10:08:44 / cg"
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
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   655
applicationNameNoConsole
20570
2e58e2877032 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20569
diff changeset
   656
    "only used for windows builds"
2e58e2877032 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 20569
diff changeset
   657
    
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   658
    ^ self applicationName , '.exe'
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
applicationPackage
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
    ^self module, ':', self applicationNameFromPackage
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   664
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   665
    "
20201
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   666
     bosch_dapasx_application applicationPackage
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   667
     stx_projects_smalltalk applicationPackage
6fe3cabd1132 #OTHER by mawalch
mawalch
parents: 20022
diff changeset
   668
     alspa_batch_application applicationPackage
14979
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
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   671
    "Created: / 08-08-2006 / 20:25:39 / fm"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   672
    "Modified: / 30-08-2006 / 19:29:25 / cg"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   673
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   674
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   675
commonFilesToInstall_unix
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   676
    "files installed for applications.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   677
     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
   678
     Do not redefine - see additionalFilesToInstall for a redefinable variant of this"
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   679
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   680
    ^ #(
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   681
        ('*.so'         'bin')
23411
70774fceafda #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23384
diff changeset
   682
        ('*.dylib'      'bin')
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   683
        ('symbols.stc'  'bin')
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   684
        ('*.stx'        'bin')
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   685
        ('*.rc'         'bin')
23439
f57365c8c7ca #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23438
diff changeset
   686
        ('resources'    'bin')
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   687
    )
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   688
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   689
    "Created: / 01-03-2007 / 20:05:40 / cg"
23411
70774fceafda #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23384
diff changeset
   690
    "Modified: / 09-10-2018 / 18:09:53 / Claus Gittinger"
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   691
!
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   692
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   693
commonFilesToInstall_win32
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   694
    "files installed for applications - used only for NSIS installer under WIN32.
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   695
     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
   696
     Do not redefine - see additionalFilesToInstall for a redefinable variant of this"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   697
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   698
    ^ #(
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   699
        '"*.dll"'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   700
        '"symbols.stc"'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   701
        '"*.stx"'
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   702
        '"*.rc"'
23439
f57365c8c7ca #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23438
diff changeset
   703
        '/r /x CVS /x ".*" resources'
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   704
    )
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   705
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   706
    "Created: / 01-03-2007 / 20:05:40 / cg"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   707
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   708
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   709
docDirPath_unix
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   710
    "path relative to my dir to the documentation - or nil"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   711
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   712
    ^ self docDirPath replaceAll:$\ with:$/.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   713
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   714
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   715
docDirPath_win32
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   716
    "path relative to my dir to the documentation - or nil"
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   717
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   718
    ^ self docDirPath replaceAll:$/ with:$\.
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   719
! !
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   720
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   721
!ApplicationDefinition class methodsFor:'description - project information'!
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   722
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   723
applicationType 
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   724
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   725
    ^self isGUIApplication
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   726
        ifTrue:['GUI_APPLICATION']
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   727
        ifFalse:['NON_GUI_APPLICATION']
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   728
!
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
   729
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   730
description
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   731
    "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
   732
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   733
    self module = 'stx' ifTrue:[
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   734
        ^ 'Smalltalk/X Application'
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   735
    ].
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   736
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
   737
    ^ 'Application'
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   738
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
   739
    "Created: / 17-08-2006 / 20:52:48 / cg"
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
   740
    "Modified: / 18-08-2006 / 16:16:01 / cg"
9889
c480dd24d0b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9886
diff changeset
   741
!
c480dd24d0b6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9886
diff changeset
   742
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   743
docDirPath
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   744
    "path relative to my dir to the documentation - or empty."
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   745
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   746
    ^ ''
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   747
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   748
    "Created: / 20-09-2006 / 17:58:40 / cg"
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   749
!
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
   750
9900
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   751
hasLicenceToAcceptDuringInstallation
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   752
    ^ false
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   753
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
   754
    "Created: / 14-09-2006 / 22:34:00 / cg"
21684
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   755
!
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   756
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   757
productName
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   758
    |nm|
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   759
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   760
    nm := super productName.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   761
    nm notNil ifTrue:[
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   762
        ^ nm.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   763
    ].
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   764
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   765
    SubclassResponsibilityError handle:[:ex |
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   766
        "/ we get this error, if the concrete class has not yet redefined
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   767
        "/ startupClassName.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   768
        self breakPoint:#cg.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   769
        ^ self name.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   770
    ] do:[
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   771
        nm := self startupClassName.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   772
        (nm endsWith:'Startup') ifTrue:[
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   773
            ^ nm copyButLast:'Startup' size.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   774
        ].
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   775
        (nm endsWith:'Start') ifTrue:[
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   776
            ^ nm copyButLast:'Start' size.
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   777
        ].
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   778
        ^ nm
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   779
    ].
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   780
790e03e94f84 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 21572
diff changeset
   781
    "Created: / 03-04-2017 / 19:10:33 / stefan"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   782
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   783
c897f2e72672 initial checkin
fm
parents:
diff changeset
   784
!ApplicationDefinition class methodsFor:'file generation'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
   785
9854
d1ae554dd112 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9835
diff changeset
   786
basicFileNamesToGenerate
22389
34ac9aadc14e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22379
diff changeset
   787
    "answer a dictionary (filename -> generator method) with all the build-support files, 
21564
8e4d7d44dc2a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21561
diff changeset
   788
     that have to be generated for this package"
10863
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   789
    
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   790
    |dict|
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   791
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   792
    dict := super basicFileNamesToGenerate.
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   793
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   794
    dict 
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   795
        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
   796
        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
   797
        at:self rcFilename      put:#'generate_packageName_dot_rc';
21564
8e4d7d44dc2a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21561
diff changeset
   798
        at:self nsiFilename     put:#'generate_packageName_dot_nsi';            "/ for win32
14061
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   799
        at:self apspecFilename  put:#'generate_autopackage_default_dot_apspec'; "/ for linux
23430
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   800
        at:'osx/Info.plist'       put:#'generate_osx_info_dot_plist';           "/ for osx
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   801
        at:'osx/osascript.script' put:#'generate_osx_osascript';                "/ for osx
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   802
21564
8e4d7d44dc2a #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21561
diff changeset
   803
        "/ at:'osx/PkgInfo'        put:#'generate_osx_pkginfo';
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   804
        at:'builder/baseline.rbspec'  put:#'generate_builder_baseline_dot_rbspec';
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   805
        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
   806
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   807
    ^ dict.
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   808
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   809
    "Modified: / 21-12-2010 / 11:01:27 / cg"
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   810
    "Modified: / 26-02-2011 / 15:43:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
22389
34ac9aadc14e #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22379
diff changeset
   811
    "Modified (comment): / 04-12-2017 / 17:40:13 / cg"
9623
474878a8887e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9614
diff changeset
   812
!
474878a8887e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9614
diff changeset
   813
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   814
generateFile:filename
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   815
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   816
   (filename = 'builder/baseline.rpspec') ifTrue:[
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   817
        ^ self generate_builder_baseline_dot_rbspec
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   818
   ].
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   819
    (filename = 'app.nsi' or:[filename = self nsiFilename]) ifTrue:[
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   820
        ^ self generate_packageName_dot_nsi
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   821
    ].
14061
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   822
    (filename = 'autopackage/default.apspec' or:[filename = self apspecFilename]) ifTrue:[
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   823
        "/ for linux
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   824
        ^ self generate_autopackage_default_dot_apspec
1ed3f224cce8 changed:
Stefan Vogel <sv@exept.de>
parents: 13971
diff changeset
   825
    ].
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   826
    ^ super generateFile:filename
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   827
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
   828
    "Modified: / 24-02-2011 / 12:12:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
21568
34def6c3e907 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 21564
diff changeset
   829
    "Modified: / 24-02-2017 / 11:58:40 / cg"
10848
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   830
!
e0bd864b17f2 .nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents: 10809
diff changeset
   831
23435
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   832
generateFile:filename confirmMissingClasses:confirmBoolean
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   833
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   834
   (filename = 'builder/baseline.rpspec') ifTrue:[
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   835
        ^ self generate_builder_baseline_dot_rbspec
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   836
   ].
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   837
    (filename = 'app.nsi' or:[filename = self nsiFilename]) ifTrue:[
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   838
        ^ self generate_packageName_dot_nsi
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   839
    ].
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   840
    (filename = 'autopackage/default.apspec' or:[filename = self apspecFilename]) ifTrue:[
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   841
        "/ for linux
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   842
        ^ self generate_autopackage_default_dot_apspec
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   843
    ].
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   844
    ^ super generateFile:filename confirmMissingClasses:confirmBoolean
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   845
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   846
    "Modified: / 24-02-2011 / 12:12:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   847
    "Modified: / 24-02-2017 / 11:58:40 / cg"
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   848
!
b61f95c75b98 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23430
diff changeset
   849
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   850
generate_modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   851
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   852
    ^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
   853
            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
   854
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   855
    "
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   856
     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
   857
    "
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   858
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   859
    "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
   860
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
   861
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   862
generate_modules_dot_stx
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   863
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   864
    ^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
   865
            in: self modules_dot_stx
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   866
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   867
"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   868
  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
   869
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   870
"
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   871
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   872
    "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
   873
    "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
   874
!
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
   875
23430
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   876
generate_osx_osascript
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   877
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   878
    ^ (self
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   879
        replaceMappings: self osx_osascript_mappings
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   880
        in: self osx_osascript) asStringCollection withTabs asString.
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   881
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   882
    "
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   883
     stx_clients_Clock_QlockTwoWatchApplication generate_osx_osascript
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   884
    "
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   885
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   886
    "Modified: / 09-08-2006 / 11:31:01 / fm"
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   887
!
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
   888
20581
a84d4217a951 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20570
diff changeset
   889
generate_osx_pkginfo
a84d4217a951 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20570
diff changeset
   890
    ^ 'APPL',self applicationName
a84d4217a951 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20570
diff changeset
   891
!
a84d4217a951 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 20570
diff changeset
   892
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   893
generate_packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   894
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   895
    ^self 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   896
        replaceMappings: self packageName_dot_nsi_mappings 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   897
        in: self packageName_dot_nsi
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   898
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   899
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   900
     bosch_dapasx_application generate_packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   901
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   902
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   903
    "Modified: / 09-08-2006 / 11:31:09 / fm"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   904
    "Created: / 14-09-2006 / 21:08:23 / cg"
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
   905
    "Modified: / 15-10-2006 / 12:52:21 / cg"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   906
!
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
   907
10863
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   908
nsiFilename
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   909
    ^ self packageName,'.nsi'.
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   910
daabfcda3d90 Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10848
diff changeset
   911
    "Created: / 14-09-2006 / 21:03:41 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
   912
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
   913
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   914
!ApplicationDefinition class methodsFor:'file mappings'!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   915
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   916
additionalFilesToInstall_dot_nsi:bindings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   917
    ^ String 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   918
        streamContents:[:s | 
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
   919
            self additionalFilesToInstall_win32 do:[:pattern | 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   920
                s nextPutLine:((self installFileLine_nsi_for:pattern) 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   921
                            expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   922
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   923
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   924
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   925
    "Created: / 01-03-2007 / 19:59:18 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   926
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   927
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   928
additionalSectionsDescriptions_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   929
    ^''
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   930
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   931
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   932
additionalSectionsDescriptions_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   933
    ^self additionalSectionsDescriptions_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   934
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   935
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   936
additionalSectionsInsertDescriptions_dot_nsi
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
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   939
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   940
additionalSectionsInsertDescriptions_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   941
    ^self additionalSectionsInsertDescriptions_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   942
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   943
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   944
additionalSections_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   945
    ^''
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   948
additionalSections_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   949
    ^self additionalSections_dot_nsi expandPlaceholdersWith:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   950
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   951
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   952
appSourcesLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   953
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   954
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   955
('Section "Application Sources" Section4
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   956
    SectionIn 1
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   957
    SetOverwrite ifnewer
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   958
' expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   959
        self appSourcesProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   960
            s nextPutAll:((self defineAPPSourceLine_nsi_for: projectID)expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   961
            s cr.
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
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   964
'SectionEnd'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   965
    ].
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
    "Created: / 15-10-2006 / 12:59:03 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   968
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
   969
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   970
autopackage_default_dot_apspec_mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   971
    |mappings|
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   972
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   973
    mappings := super autopackage_default_dot_apspec_mappings.
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   974
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   975
    mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   976
        at: 'APPLICATION' put: self applicationName;
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   977
        at: 'APPLICATION_PACKAGE' put: self package printString "applicationPackage";
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   978
        at: 'APPLICATION_TYPE' put: self applicationType;
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   979
        yourself.
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   980
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   981
    self offerSmalltalkSourceCode ifTrue:[ 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   982
"/        mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   983
"/            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   984
"/                                            in: self make_dot_proto_stx_source_rules).
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   985
    ].
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   986
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   987
    self offerApplicationSourceCode ifTrue:[  
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   988
"/        mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   989
"/            at: 'SOURCE_RULES' put:( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   990
"/                                            in: self make_dot_proto_app_source_rules ).
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   991
    ].
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   992
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   993
    self needResources ifTrue:[
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   994
"/        mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   995
"/            at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES';
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   996
"/            at: 'RESOURCE_RULES' put:( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   997
"/                                            in: self make_dot_proto_resource_rules );
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   998
"/            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: mappings 
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
   999
"/                                            in: self make_dot_proto_stx_resource_rules);
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1000
"/            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1001
"/            yourself.
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1002
    ].
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1003
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1004
    ^ mappings
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1005
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1006
    "Created: / 21-12-2010 / 09:00:49 / cg"
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1007
    "Modified: / 21-12-2010 / 11:00:22 / cg"
14338
ca37328024f5 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 14335
diff changeset
  1008
    "Modified (comment): / 04-09-2012 / 13:09:22 / cg"
13176
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1009
!
9cfa8b8de3d0 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 13123
diff changeset
  1010
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1011
bc_dot_mak_mappings
23215
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1012
    |d subProjectLibs|
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1013
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1014
    subProjectLibs := self generateSubProjectLibs_bc_dot_mak.
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1015
    subProjectLibs notEmptyOrNil ifTrue:[
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1016
        subProjectLibs := subProjectLibs withoutSeparators
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1017
    ].
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1018
    
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1019
    d := super bc_dot_mak_mappings.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1020
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1021
        at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1022
        at: 'CONSOLE_APPLICATION_OR_EMPTY' put:(self makeConsoleApplication ifTrue:['consoleApp'] ifFalse:'');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1023
        at: 'NOCONSOLE_APPLICATION_OR_EMPTY' put:(self makeNonConsoleApplication ifTrue:['noConsoleApp'] ifFalse:'');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1024
        at: 'APPLICATION' put: (self applicationName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1025
        at: 'NSI_FILENAME' put: self nsiFilename ;
19538
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  1026
        at: 'PRODUCT_NAME' put: (self productName);
20545
131ea01d7c55 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20544
diff changeset
  1027
        at: 'PRODUCT_FILENAME' put: (self productFilename);
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1028
        at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1029
        at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1030
        at: 'NOCONSOLE_LOGFILE' put:(self logFilenameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1031
        at: 'RESFILENAME' put: (self resourceFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1032
        at: 'RCFILENAME' put: (self rcFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1033
        at: 'STARTUP_CLASS' put: ( self startupClassName );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1034
        at: 'STARTUP_SELECTOR' put: (self startupSelector );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1035
        at: 'MAIN_DEFINES' put: (self mainDefines );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1036
        at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_bc_dot_mak); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1037
        at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_bc_dot_mak );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1038
        at: 'DEPENDENCIES' put: (self generateDependencies_win32);
23215
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1039
        at: 'SUBPROJECT_LIBS' put: subProjectLibs; 
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1040
        at: 'SUBPROJECTS_LINES' put: (self generateSubProjectLines_bc_dot_mak ); 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1041
        at: 'BUILD_TARGET' put: (self buildTarget );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1042
        at: 'REQUIRED_SUPPORT_DIRS' put: (self extraTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1043
        yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1044
23215
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1045
    "/ windwos make is so stupid    
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1046
    subProjectLibs notEmptyOrNil ifTrue:[
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1047
        d at: 'SUBPROJECTS_TARGET' put: 'subProjects'.
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1048
    ] ifFalse:[
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1049
        d at: 'SUBPROJECTS_TARGET' put: ''.
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1050
    ].    
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1051
    
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1052
    self needResources ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1053
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1054
            at: 'RESOURCE_RULES' put:( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1055
                                            in: self bc_dot_mak_resource_rules );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1056
            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1057
                                            in: self bc_dot_mak_stx_resource_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1058
            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1059
            yourself
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
    self offerSmalltalkSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1062
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1063
            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1064
                                               in: self bc_dot_mak_stx_source_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1065
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1066
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1067
    self offerApplicationSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1068
        d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1069
            at: 'APP_SOURCE_RULES' put: ( self replaceMappings: d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1070
                                               in: self bc_dot_mak_app_source_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1071
            yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1072
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1073
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1074
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1075
    "Modified: / 15-05-2007 / 17:27:04 / cg"
23215
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1076
    "Modified (comment): / 18-07-2018 / 14:18:35 / Claus Gittinger"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1077
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1078
19628
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  1079
bmake_dot_mak_mappings
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  1080
    ^ super bmake_dot_mak_mappings
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  1081
        at:'SKIP_IF_ARG_IS_APP_TARGET' put:'
20202
04db7d7bca44 #BUGFIX by sr
sr
parents: 20201
diff changeset
  1082
@IF "%1" EQU "exe" exit /b 0
04db7d7bca44 #BUGFIX by sr
sr
parents: 20201
diff changeset
  1083
@IF "%1" EQU "setup" exit /b 0
04db7d7bca44 #BUGFIX by sr
sr
parents: 20201
diff changeset
  1084
@IF "%1" EQU "pluginSetup" exit /b 0
19956
d84806e01309 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19628
diff changeset
  1085
';
d84806e01309 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19628
diff changeset
  1086
        yourself
d84806e01309 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19628
diff changeset
  1087
d84806e01309 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19628
diff changeset
  1088
    "Modified: / 06-06-2016 / 12:06:16 / cg"
19628
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  1089
!
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  1090
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1091
buildDate_dot_h_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1092
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1093
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1094
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1095
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1096
        at: 'BUILDDATE' put: (Timestamp now printStringRFC1123Format ). 
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
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1099
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1100
    "Created: / 30-08-2006 / 19:19:30 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1101
    "Modified: / 14-09-2006 / 18:58:31 / cg"
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
commonFilesToInstall_dot_nsi:bindings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1105
    ^ String 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1106
        streamContents:[:s | 
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1107
            self commonFilesToInstall_win32 do:[:pattern | 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1108
                s nextPutLine:((self installFileLine_nsi_for:pattern) 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1109
                            expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1110
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1111
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1112
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1113
    "Created: / 01-03-2007 / 20:05:20 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1114
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1115
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1116
directoryUninstallLines_dot_nsi
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1117
    "%(DIRECTORY_UNINSTALL_LINES)"
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
  ^'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1120
    Delete "$INSTDIR\*"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1121
    RMDir /r "$INSTDIR"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1122
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1123
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1124
fileExtensionDefinitionLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1125
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1126
        self documentExtensions do:[:ext |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1127
            s nextPutAll:((self defineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1128
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1129
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1130
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1131
    "Created: / 15-10-2006 / 12:59:03 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1132
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1133
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1134
fileExtensionUndefinitionLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1135
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1136
        self documentExtensions do:[:ext |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1137
            s nextPutAll:((self undefineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1138
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1139
    ].
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
    "Created: / 15-10-2006 / 12:59:18 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1142
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1143
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1144
make_dot_proto_mappings
22313
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1145
    |mappings subprojectLibs|
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1146
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1147
    mappings := super make_dot_proto_mappings.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1148
    mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1149
        at: 'NSI_FILENAME' put: self nsiFilename ;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1150
        at: 'APPLICATION' put: self applicationName;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1151
        at: 'APPLICATION_PACKAGE' put: self package printString "applicationPackage";
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1152
        at: 'APPLICATION_TYPE' put: self applicationType;
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1153
        at: 'STARTUP_CLASS' put: (self startupClassName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1154
        at: 'STARTUP_SELECTOR' put: (self startupSelector);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1155
        at: 'MAIN_DEFINES' put: (self mainDefines);
20602
0b81976fbba1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20596
diff changeset
  1156
        at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_make_dot_proto);  
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1157
        at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_make_dot_proto);  
20602
0b81976fbba1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20596
diff changeset
  1158
        at: 'REQUIRED_LIBOBJS' put: (self generateRequiredLibobjs_make_dot_proto);
0b81976fbba1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20596
diff changeset
  1159
        at: 'REQUIRED_LINK_LIBOBJS' put: (self generateRequiredLinkLibobjs_make_dot_proto);
0b81976fbba1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20596
diff changeset
  1160
        at: 'REQUIRED_SUPPORT_DIRS' put: (self extraTargets asStringWith:' ');
0b81976fbba1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20596
diff changeset
  1161
        at: 'DEPENDENCIES' put: (self generateDependencies_unix);
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1162
        at: 'PRODUCT_NAME' put: (self productName);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1163
        at: 'PRODUCT_FILENAME' put: (self productFilename);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1164
        at: 'PRODUCT_VERSION' put: (self productVersion);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1165
        at: 'PRODUCT_DATE' put: (self productDate);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1166
        at: 'PRODUCT_PUBLISHER' put: (self productPublisher);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1167
        at: 'PRODUCT_WEBSITE' put: (self productWebSite);
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  1168
        at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir);
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  1169
        at: 'OSX_DMG_SETUP' put: (self osxDmgImageSetupLines);
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  1170
        at: 'OSX_PKG_SETUP' put: (self osxPkgImageSetupLines);
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  1171
        at: 'PRODUCT_ID' put: (self package copyReplaceAny:':/' with:$.); 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1172
        at: 'BUILD_TARGET' put: (self buildTarget ).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1173
22313
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1174
    subprojectLibs := self generateSubProjectLibs_make_dot_proto.
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1175
    subprojectLibs notEmpty ifTrue:[
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1176
        mappings at: 'SUBPROJECT_LIBS' put: subprojectLibs; 
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1177
                 at: 'SUBPROJECTS_LINES' put: (self generateSubProjectLines_make_dot_proto); 
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1178
                 at: 'SUBPROJECT_RULE' put:'$(MAKE) FORCE=@@@FORCE-BUILD@@@ $(SUBPROJECT_LIBS)'.
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1179
    ].
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1180
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1181
    self offerSmalltalkSourceCode ifTrue:[ 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1182
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1183
            at: 'STX_SOURCE_RULES' put: ( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1184
                                            in: self make_dot_proto_stx_source_rules).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1185
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1186
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1187
    self offerApplicationSourceCode ifTrue:[  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1188
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1189
            at: 'SOURCE_RULES' put:( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1190
                                            in: self make_dot_proto_app_source_rules ).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1191
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1192
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1193
    self needResources ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1194
        mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1195
            at: 'RESOURCE_RULES' put:( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1196
                                            in: self make_dot_proto_resource_rules );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1197
            at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: mappings 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1198
                                            in: self make_dot_proto_stx_resource_rules);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1199
            at: 'ADDITIONAL_RESOURCE_TARGETS' put:( self additionalResourceTargets asStringWith:' ');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1200
            yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1201
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1202
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1203
    ^ mappings
14338
ca37328024f5 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 14335
diff changeset
  1204
ca37328024f5 comment/format in:
Claus Gittinger <cg@exept.de>
parents: 14335
diff changeset
  1205
    "Modified (format): / 04-09-2012 / 13:06:50 / cg"
22313
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1206
    "Modified: / 12-10-2017 / 15:29:45 / stefan"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1207
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1208
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1209
modules_dot_c_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1210
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1211
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1212
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1213
    d 
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1214
        at: 'INIT_LIST' put: 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1215
            ((self generateClassLines:(self classLine_modules_dot_c)) , 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1216
             (self generateExtensionLine:(self extensionsLine_modules_dot_c)));
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1217
        at: 'EXTERN_INIT_NAME_LIST' put: 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1218
            ((self generateClassLines:(self classLine_modules_dot_c_extern)),
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1219
             (self generateExtensionLine:(self extensionsLine_modules_dot_c_extern)));
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1220
        yourself.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1221
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1222
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1223
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1224
    "
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1225
        cvut_fel_izar modules_dot_c_mappings
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1226
    "
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1227
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1228
    "Created: / 19-09-2006 / 22:42:15 / cg"
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1229
    "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
  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
modules_dot_stx_mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1233
    |d|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1234
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1235
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1236
    d 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1237
        at: 'PREREQUISITE_LIBS' put: (self generatePreRequisiteLibs_modules_dot_stx);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1238
        at: 'ALLPREREQUISITE_LIBS' put: (self generateAllPreRequisiteLibs_modules_dot_stx);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1239
        at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLines_modules_dot_stx  ). 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1240
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1241
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1242
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1243
    "Modified: / 14-09-2006 / 18:58:41 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1244
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1245
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1246
nsiDeliveredConsoleExecutable
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1247
    self isGUIApplication ifFalse:[^ '' "made anyway"].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1248
    self makeConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1249
        ^ ('"',self applicationName,'.com','"').
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1250
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1251
    ^ ''
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1252
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1253
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1254
nsiDeliveredExecutables
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1255
    "by default, an executable named after the application.
15208
df25f8568167 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15205
diff changeset
  1256
     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
  1257
     return a string containing each individually double-quoted."
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1258
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1259
    |s|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1260
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1261
    s := ''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1262
    self makeNonConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1263
        s := '"', self applicationNameNoConsole,'"'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1264
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1265
    self makeConsoleApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1266
        s := s , (' "',self applicationNameConsole,'"').
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1267
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1268
    ^ s
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1269
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1270
23430
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1271
osx_osascript_mappings
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1272
    |d|
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1273
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1274
    d := Dictionary new.
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1275
    d 
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1276
        at: 'APPLICATION' put: (self applicationName);
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1277
        at: 'PRODUCT_NAME' put: (self productName);
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1278
        at: 'PRODUCT_FILENAME' put: (self productFilename);
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1279
        yourself.
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1280
    ^ d
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1281
!
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  1282
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1283
packageName_dot_nsi_mappings
23383
2884fe465c09 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23216
diff changeset
  1284
    |d fn s defLines undefLines defRunAsAdmin undefRunAsAdmin stxSourcesLines appSourcesLines|
12366
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
    d := Dictionary new.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1287
    d
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1288
        at: 'TOP' put: ( self pathToTopWithSeparator:'\' );
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1289
23383
2884fe465c09 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23216
diff changeset
  1290
        at: 'APPLICATION' put: (self applicationName).
2884fe465c09 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23216
diff changeset
  1291
    (fn := self applicationInstallIconFileName) notNil ifTrue:[    
2884fe465c09 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23216
diff changeset
  1292
        d at: 'APPLICATION_ICON' put: fn
2884fe465c09 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23216
diff changeset
  1293
    ].    
2884fe465c09 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23216
diff changeset
  1294
    d
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1295
        at: 'NSI_FILENAME' put: (self nsiFilename );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1296
        at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1297
        at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1298
        at: 'DELIVERED_EXECUTABLES' put: (self nsiDeliveredExecutables);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1299
        at: 'MODULE' put: ( self module );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1300
        at: 'MODULE_KEY' put: ( self module asUppercaseFirst );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1301
        at: 'PRODUCT_NAME' put: (self productName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1302
        at: 'PRODUCT_FILENAME' put: (self productFilename);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1303
        at: 'PRODUCT_VERSION' put: (self productVersion);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1304
        at: 'PRODUCT_DATE' put: (self productDate);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1305
        at: 'PRODUCT_PUBLISHER' put: (self productPublisher);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1306
        at: 'PRODUCT_WEBSITE' put: (self productWebSite);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1307
        at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1308
        at: 'FILETYPE' put: ( 'VFT_DLL' );
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1309
        at: 'FILE_VERSION_COMMASEPARATED' put: (self fileVersionCommaSeparated);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1310
        at: 'PRODUCT_VERSION_COMMASEPARATED' put: (self productVersionCommaSeparated);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1311
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1312
        at: 'COMPANY_NAME' put: (self companyName);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1313
        at: 'FILE_DESCRIPTION' put: (self fileDescription);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1314
        at: 'FILE_VERSION' put: (self fileVersion);
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1315
        at: 'LEGAL_COPYRIGHT' put: (self legalCopyright ? '');
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1316
        at: 'INTERNAL_NAME' put: (self internalName).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1317
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1318
    s := self legalCopyright.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1319
    s notNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1320
        d  at: 'LEGAL_COPYRIGHT_LINE' put: '      VALUE "LegalCopyright", "',s,'\0"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1321
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1322
    s := self applicationInstallIconFileName.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1323
    s isNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1324
        d  at:'SEMI_IF_NO_ICON_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1325
        d  at:'SEMI_IF_ICON_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1326
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1327
        d  at:'SEMI_IF_NO_ICON_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1328
        d  at:'SEMI_IF_ICON_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1329
"/        d  at: #'ICONDEFINITION_LINE' put: 'IDR_MAINFRAME           ICON    DISCARDABLE     "',s,'"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1330
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1331
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1332
"/    s := self splashFileName.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1333
"/    s notNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1334
"/        d  at: #'SPLASHDEFINITION_LINE' put: 'IDR_SPLASH            BITMAP DISCARDABLE     "',s,'"'
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1335
"/    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1336
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1337
    s := self docDirPath_win32.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1338
    s isEmptyOrNil ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1339
        d  at:'SEMI_IF_NO_DOC_EXISTS' put:';; '.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1340
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1341
        d  at:'SEMI_IF_NO_DOC_EXISTS' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1342
    ].   
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1343
    self offerSmalltalkSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1344
        stxSourcesLines := self stxSourcesLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1345
        d at:'STX_SOURCES_LINES' put:stxSourcesLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1346
        d  at:'SEMI_IF_NO_STX_SOURCES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1347
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1348
        d at:'STX_SOURCES_LINES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1349
        d  at:'SEMI_IF_NO_STX_SOURCES' put:';;'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1350
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1351
    self offerApplicationSourceCode ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1352
        appSourcesLines := self appSourcesLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1353
        d at:'APP_SOURCES_LINES' put:appSourcesLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1354
        d at:'SEMI_IF_NO_STX_SOURCES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1355
    ] ifFalse:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1356
        d at:'APP_SOURCES_LINES' put:''.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1357
        d at:'SEMI_IF_NO_APP_SOURCES' put:';;'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1358
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1359
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1360
    defLines := self fileExtensionDefinitionLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1361
    undefLines := self fileExtensionUndefinitionLines_dot_nsi:d.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1362
14383
sr
parents: 14379
diff changeset
  1363
    defRunAsAdmin := self runAsAdminDefinitionLines_dot_nsi:d.
sr
parents: 14379
diff changeset
  1364
    undefRunAsAdmin := self runAsAdminUndefinitionLines_dot_nsi:d.
sr
parents: 14379
diff changeset
  1365
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1366
    d at:'FILE_EXTENSION_DEFINITION_LINES' put:defLines.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1367
    d at:'FILE_EXTENSION_UNDEFINITION_LINES' put:undefLines.
14383
sr
parents: 14379
diff changeset
  1368
    d at:'DEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN' put:defRunAsAdmin.
sr
parents: 14379
diff changeset
  1369
    d at:'UNDEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN' put:undefRunAsAdmin.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1370
    d at:'ADDITIONAL_FILES_TO_INSTALL' put:(self additionalFilesToInstall_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1371
    d at:'COMMON_FILES_TO_INSTALL' put:(self commonFilesToInstall_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1372
    d at:'ADDITIONAL_SECTIONS' put:(self additionalSections_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1373
    d at:'ADDITIONAL_SECTIONS_DESCRIPTIONS' put:(self additionalSectionsDescriptions_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1374
    d at:'ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS' put:(self additionalSectionsInsertDescriptions_dot_nsi:d).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1375
    d at: 'DIRECTORY_UNINSTALL_LINES' put: (self directoryUninstallLines_dot_nsi).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1376
    ^ d
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1377
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1378
    "Created: / 14-09-2006 / 21:08:44 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1379
    "Modified: / 15-05-2007 / 17:24:27 / cg"
14383
sr
parents: 14379
diff changeset
  1380
    "Modified: / 12-10-2012 / 11:44:32 / sr"
23383
2884fe465c09 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23216
diff changeset
  1381
    "Modified: / 24-09-2018 / 12:20:35 / Claus Gittinger"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1382
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1383
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1384
preRequisiteLine_bc_dot_mak_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1385
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1386
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1387
        at: 'FILE_NAME' put: (self libraryNameFor:aProjectID);  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1388
        at: 'MODULE_DIRECTORY' put: (self msdosPathToPackage:aProjectID from:self package);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1389
        at: 'BACK_DIRECTORY' put: (self msdosPathToPackage:self package from:aProjectID);     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1390
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1391
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1392
    "Modified: / 09-02-2007 / 16:59:21 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1393
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1394
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1395
preRequisiteLine_bc_dot_mak_mappingsForClass:aClass
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1396
    |relPath|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1397
15529
570aa8bee992 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15394
diff changeset
  1398
    relPath := (PackageId from:aClass package) directory copyReplaceAll:$/ with:$\.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1399
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1400
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1401
        at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1402
        at: 'MODULE_DIRECTORY' put:relPath;     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1403
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1404
15529
570aa8bee992 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15394
diff changeset
  1405
    "Modified: / 16-07-2013 / 19:50:26 / cg"
12366
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
preRequisiteLine_make_dot_proto_mappings: aProjectID 
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
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1411
        at: 'FILE_NAME' put: (self libraryNameFor:aProjectID);  
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1412
        at: 'MODULE_DIRECTORY' put: (self pathToPackage:aProjectID from:self package withSeparator:'/');     
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1413
        at: 'BACK_DIRECTORY' put: (self pathToPackage:self package from:aProjectID withSeparator:'/');     
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1414
        yourself
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1417
preRequisiteLine_make_dot_proto_mappingsForClass:aClass
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1418
    |relPath|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1419
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1420
    relPath := (PackageId from:aClass package) directory.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1421
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1422
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1423
        at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName );  
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1424
        at: 'MODULE_DIRECTORY' put:relPath;     
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1425
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1426
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1427
    "Modified: / 09-02-2007 / 16:28:12 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1428
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1429
14383
sr
parents: 14379
diff changeset
  1430
runAsAdminDefinitionLines_dot_nsi:bindings
sr
parents: 14379
diff changeset
  1431
    self runAsAdmin ifFalse:[
sr
parents: 14379
diff changeset
  1432
        ^ ''
sr
parents: 14379
diff changeset
  1433
    ].
sr
parents: 14379
diff changeset
  1434
sr
parents: 14379
diff changeset
  1435
    ^ String streamContents:[:s |
sr
parents: 14379
diff changeset
  1436
        s nextPutLine:('  WriteRegStr HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" "RUNASADMIN"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1437
        s nextPutLine:'  SetRegView 64'.
sr
parents: 14379
diff changeset
  1438
        s nextPutLine:('  WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" "RUNASADMIN"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1439
        s nextPutAll:'  SetRegView 32'.
sr
parents: 14379
diff changeset
  1440
    ].
sr
parents: 14379
diff changeset
  1441
sr
parents: 14379
diff changeset
  1442
    "Created: / 12-10-2012 / 10:12:12 / sr"
sr
parents: 14379
diff changeset
  1443
!
sr
parents: 14379
diff changeset
  1444
sr
parents: 14379
diff changeset
  1445
runAsAdminUndefinitionLines_dot_nsi:bindings
sr
parents: 14379
diff changeset
  1446
    self runAsAdmin ifFalse:[
sr
parents: 14379
diff changeset
  1447
        ^ ''
sr
parents: 14379
diff changeset
  1448
    ].
sr
parents: 14379
diff changeset
  1449
sr
parents: 14379
diff changeset
  1450
    ^ String streamContents:[:s |
sr
parents: 14379
diff changeset
  1451
        s nextPutLine:('  DeleteRegValue HKCU "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1452
        s nextPutLine:'  SetRegView 64'.
sr
parents: 14379
diff changeset
  1453
        s nextPutLine:('  DeleteRegValue HKLM "Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\layers" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"' expandPlaceholdersWith:bindings).
sr
parents: 14379
diff changeset
  1454
        s nextPutAll:'  SetRegView 32'.
sr
parents: 14379
diff changeset
  1455
    ].
sr
parents: 14379
diff changeset
  1456
sr
parents: 14379
diff changeset
  1457
    "Created: / 12-10-2012 / 10:12:37 / sr"
sr
parents: 14379
diff changeset
  1458
!
sr
parents: 14379
diff changeset
  1459
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1460
stxSourcesLines_dot_nsi:bindings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1461
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1462
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1463
'Section "STX Sources" Section3
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1464
    SectionIn 1
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1465
    SetOverwrite ifnewer
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1466
'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1467
        self stxSourcesProjects do:[:projectID |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1468
            s nextPutAll:((self defineSTXSourceLine_nsi_for: projectID) expandPlaceholdersWith:bindings).
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1469
            s cr.
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
        s nextPutAll:
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1472
'SectionEnd'.
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
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1475
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1476
    "Created: / 15-10-2006 / 12:59:03 / cg"
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1479
subProjectLine_bc_dot_mak_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1480
    ^ Dictionary new
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1481
        at: 'LIBRARY_NAME' put: (self libraryNameFor: aProjectID );     
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1482
        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
  1483
        at: 'PATH_TO_MYPROJECT' put: (self msdosPathToPackage: self package from: aProjectID); 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1484
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1485
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1486
    "Modified: / 14-09-2006 / 18:59:26 / cg"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1487
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1488
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1489
subProjectLine_make_dot_proto_mappings: aProjectID 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1490
    ^ Dictionary new
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1491
        at: 'LIBRARY_NAME' put: (self libraryNameFor:aProjectID );     
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1492
        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
  1493
        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
  1494
        yourself
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1495
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1496
    "Modified: / 14-09-2006 / 18:59:26 / cg"
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
!ApplicationDefinition class methodsFor:'file mappings support'!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1500
23494
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1501
allPackagesForResources
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1502
    |includedInSubProjects|
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1503
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1504
    includedInSubProjects := self includedInSubProjects.
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1505
    includedInSubProjects := includedInSubProjects 
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1506
        collect:[:eachPackageOrArray |
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1507
            eachPackageOrArray isArray ifTrue:[
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1508
                eachPackageOrArray first
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1509
            ] ifFalse:[
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1510
                eachPackageOrArray
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1511
            ]
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1512
        ].
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1513
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1514
    ^ self allPreRequisitesSorted, self subProjects, includedInSubProjects
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1515
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1516
    "Created: / 31-10-2018 / 15:56:29 / sr"
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1517
!
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1518
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1519
generateAllPreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1520
    ^ String streamContents:[:s |
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1521
        self allPreRequisitesSorted do:[:projectID | 
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1522
            (self shouldBeLoadedInitially:projectID) ifFalse:[
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1523
                s nextPut:$*.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1524
            ].
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1525
            s nextPutLine:(self libraryNameFor:projectID).
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1526
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1527
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1528
            self guiClassFileNames_win32 do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1529
                s nextPutLine:(eachFilename asFilename withoutSuffix baseName)
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1530
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1531
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1532
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1533
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1534
    "
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1535
     exept_expecco_application generateAllPreRequisiteLibs_modules_dot_stx
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
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1538
    "Modified: / 07-09-2006 / 17:22:58 / cg"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1539
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1540
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1541
generateExtensionLine: extensionLineTemplate
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1542
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1543
    ^self hasExtensionMethods
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1544
        ifFalse:['']
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1545
        ifTrue:[
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1546
            self replaceMappings: 
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1547
                (Dictionary new 
18501
1e7170250a51 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 18429
diff changeset
  1548
                    at: 'CLASS' put:( self st2c:(ProjectDefinition projectDefinitionClassNameForDefinitionOf:self package) );
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1549
                    yourself)
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1550
                in: extensionLineTemplate
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1551
            ]
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1552
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1553
    "Created: / 18-11-2010 / 09:38:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1554
!
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  1555
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1556
generatePreRequisiteLibs_modules_dot_stx
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1557
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1558
        self effectivePreRequisites do:[:projectID | 
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1559
            (self shouldBeLoadedInitially:projectID) ifFalse:[
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1560
                s nextPut:$*.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1561
            ].
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1562
            s nextPutLine:(self libraryNameFor:projectID).
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1563
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1564
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1565
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1566
    "
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1567
     exept_expecco_application generatePreRequisiteLibs_modules_dot_stx
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1568
    "
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
    "Modified: / 07-09-2006 / 17:22:58 / cg"
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1573
generatePreRequisiteLines_bc_dot_mak         
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
    ^ String streamContents:[:s |
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1576
        self allPreRequisitesSorted do:[:eachPackage |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1577
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1578
            mappings := self preRequisiteLine_bc_dot_mak_mappings: eachPackage.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1579
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1580
                                in: self preRequisiteLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1581
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1582
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1583
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1584
        self guiClasses_win32 do:[:eachClass |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1585
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1586
            mappings := self preRequisiteLine_bc_dot_mak_mappingsForClass: eachClass.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1587
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1588
                                in: self preRequisiteLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1589
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1590
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1591
        ].
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
     bosch_dapasx_application generatePreRequisiteLines_bc_dot_mak 
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
    "Created: / 09-08-2006 / 11:24:39 / fm"
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1599
    "Modified: / 14-09-2006 / 21:58:47 / cg"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1600
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1601
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1602
generatePreRequisiteLines_make_dot_proto        
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1603
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1604
    ^ String streamContents:[:s |
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1605
        self allPreRequisitesSorted do:[:eachPackage |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1606
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1607
            mappings := self preRequisiteLine_make_dot_proto_mappings: eachPackage.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1608
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1609
                                in: self preRequisiteLine_make_dot_proto.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1610
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1611
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1612
        ].
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  1613
        self guiClasses_unix do:[:eachClass |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1614
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1615
            mappings := self preRequisiteLine_make_dot_proto_mappingsForClass: eachClass.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1616
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1617
                                in: self preRequisiteLine_make_dot_proto.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1618
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1619
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1620
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1621
    ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1622
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1623
    "
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  1624
     exept_expecco_application generatePreRequisiteLines_bc_dot_mak 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1625
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1626
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1627
    "Created: / 09-08-2006 / 11:24:39 / fm"
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1628
    "Modified: / 14-09-2006 / 21:58:47 / cg"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1629
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1630
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1631
generateRequiredLibobjs_make_dot_proto
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1632
    ^ String streamContents:[:s |
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1633
        self allPreRequisitesSorted do:[:projectID |
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1634
            |libobjPath libPath|
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1635
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1636
            libPath := self pathToPackage:projectID withSeparator:'/'.
23463
21c8064f6faf #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23461
diff changeset
  1637
            (libPath endsWith:'/') ifFalse:[ libPath := libPath , '/' ].
21c8064f6faf #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23461
diff changeset
  1638
            libobjPath := libPath , (self libraryNameFor:projectID).
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1639
            s space; nextPutAll: libobjPath; nextPutLine:'$(O_EXT) \'.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1640
        ].
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1641
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1642
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1643
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1644
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1645
    "
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1646
     exept_expecco_application generateRequiredLibobjs_make_dot_proto      
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1647
    "
23463
21c8064f6faf #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23461
diff changeset
  1648
21c8064f6faf #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23461
diff changeset
  1649
    "Modified: / 24-10-2018 / 18:57:00 / Claus Gittinger"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1650
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1651
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1652
generateRequiredLibs_bc_dot_mak
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1653
    ^ String streamContents:[:s |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1654
        s nextPutLine:' \'.
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1655
        self allPreRequisitesSorted do:[:projectID | 
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1656
            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:'.dll \'.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1657
        ].
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1658
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1659
"/ Subprojects are not linked to the exe!!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1660
"/        self subProjects do:[:projectID | 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1661
"/            s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1662
"/        ].
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1663
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1664
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1665
            self guiClassFileNames_win32 do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1666
                s space; nextPutAll:eachFilename; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1667
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1668
        ].
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1672
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1673
     bosch_dapasx_application generateRequiredLibs_bc_dot_mak      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1674
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1675
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1676
    "Modified: / 07-09-2006 / 17:22:51 / cg"
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
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1679
generateRequiredLibs_make_dot_proto
12600
5d5034da3835 changed:6 methods
Claus Gittinger <cg@exept.de>
parents: 12599
diff changeset
  1680
    "/ cg: why not (self libraryNameFor:projectID),'.so'; ???
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1681
    ^ String streamContents:[:s |
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1682
        self allPreRequisitesSorted do:[:projectID | 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1683
            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1684
        ].
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1685
"/ Subprojects are only built, but not linked to the executable!!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1686
"/        self subProjects do:[:projectID | 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1687
"/            s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1688
"/        ].
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1689
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1690
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1691
            self guiClassFileNames_unix do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1692
                s space; nextPutAll:eachFilename; nextPutLine:' \'.
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
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1695
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1696
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1697
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1698
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1699
     alspa_batch_application generateRequiredLibs_make_dot_proto      
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
!
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
generateRequiredLinkLibobjs_make_dot_proto
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1704
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1705
    ^ String streamContents:[:s |
20022
d8efe52abe8a #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20021
diff changeset
  1706
        self allPreRequisitesSorted do:[:projectID | 
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1707
            s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1708
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1709
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1710
        self isGUIApplication ifTrue:[
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1711
            self guiClassFileNames_unix do:[:eachFilename |
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1712
                s space; nextPutAll:eachFilename,'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1713
            ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1714
        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1715
"/        self subProjects do:[:projectID | 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1716
"/            s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1717
"/        ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1718
        s cr.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1719
    ].
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1720
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1721
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1722
     alspa_batch_application generateRequiredLinkLibobjs_make_dot_proto      
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1723
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1724
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1725
23494
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1726
generateResourceCopyLines_bc_mak       
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1727
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1728
    ^ String streamContents:[:s |
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1729
        self allPackagesForResources do:[:eachPackage |
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1730
            |libPath relPackagePath|
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1731
            relPackagePath := eachPackage copyReplaceAll:$: with:$\.
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1732
            relPackagePath := relPackagePath copyReplaceAll:$/ with:$\.
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1733
            libPath := self pathToPackage:eachPackage withSeparator:'\'.
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1734
            (libPath endsWith:'\') ifFalse:[libPath := libPath,'\'].
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1735
            s tab; nextPutLine: '-mkdir $(RESOURCES)\',relPackagePath.
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1736
            s tab; nextPutLine: '-copy ',libPath,'resources\*.rs $(RESOURCES)\',relPackagePath,'\*.*'.
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1737
        ].
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1738
    ]
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1739
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1740
    "
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1741
     exept_expecco_application generateResourceCopyLines_make_dot_proto 
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1742
     exept_expecco_application allPreRequisitesSorted
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1743
     exept_expecco_application allPackagesForResources
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1744
     exept_expecco_application generateResourceCopyLines_bc_mak
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1745
    "
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1746
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1747
    "Created: / 31-10-2018 / 15:34:13 / sr"
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1748
!
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1749
23473
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1750
generateResourceCopyLines_make_dot_proto        
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1751
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1752
    ^ String streamContents:[:s |
23494
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1753
        self allPackagesForResources do:[:eachPackage |
23473
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1754
            |libPath relPackagePath|
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1755
            relPackagePath := eachPackage copyReplaceAll:$: with:$/.
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1756
            libPath := self pathToPackage:eachPackage withSeparator:'/'.
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1757
            (libPath endsWith:'/') ifFalse:[libPath := libPath,'/'].
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1758
            s tab; nextPutLine: '-mkdir -p $(RESOURCES)/',relPackagePath,'/'.
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1759
            s tab; nextPutLine: '-cp -r ',libPath,'resources $(RESOURCES)/',relPackagePath,'/'.
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1760
        ].
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1761
    ]
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1762
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1763
    "
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1764
     exept_expecco_application generateResourceCopyLines_make_dot_proto 
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1765
     exept_expecco_application allPreRequisitesSorted
23494
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1766
     exept_expecco_application allPackagesForResources         
23473
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1767
     exept_expecco_application make_dot_proto_resource_rules
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1768
    "
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1769
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1770
    "Created: / 26-10-2018 / 20:46:18 / Claus Gittinger"
23494
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  1771
    "Modified (comment): / 31-10-2018 / 15:57:22 / sr"
23473
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1772
!
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  1773
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1774
generateSubProjectLibs_bc_dot_mak         
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1775
    ^ String streamContents:[:s |
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1776
        (self effectiveSubProjects:#win32) do:[:projectID | 
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1777
            |libPath libobjPath|
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1778
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1779
            libPath := self pathToPackage:projectID withSeparator:'\'.
21261
e3e7fac5b742 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21260
diff changeset
  1780
            libobjPath := libPath , '\$(OBJDIR)\', (self libraryNameFor:projectID).
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1781
            s space; nextPutAll:libobjPath; nextPutLine:'.dll \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1782
        ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1783
        s cr.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1784
    ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1785
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1786
    "
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1787
     exept_expecco_application generateSubProjectLibs_bc_dot_mak 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1788
     cg_newCompiler_driver_stc generateSubProjectLines_bc_dot_mak 
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1789
    "
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1790
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1791
    "Created: / 09-08-2006 / 11:24:39 / fm"
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1792
    "Modified: / 14-09-2006 / 18:46:09 / cg"
21261
e3e7fac5b742 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21260
diff changeset
  1793
    "Modified: / 17-01-2017 / 21:26:08 / stefan"
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1794
!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1795
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1796
generateSubProjectLibs_make_dot_proto
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1797
    ^ String streamContents:[:s |
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1798
        (self effectiveSubProjects:#unix) do:[:projectID | 
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1799
            |libPath libobjPath|
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1800
16327
05bd8dda9217 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15951
diff changeset
  1801
            libPath := self pathToPackage:projectID withSeparator:'/'.
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1802
            libobjPath := libPath , '/', (self libraryNameFor:projectID).
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1803
            s space; nextPutAll:libobjPath; nextPutLine:'$(O_EXT) \'.
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1804
        ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1805
    ].
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1806
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1807
    "
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1808
     exept_expecco_application generateSubProjectLibs_make_dot_proto      
22313
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1809
     self generateSubProjectLibs_make_dot_proto      
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1810
    "
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1811
22313
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  1812
    "Modified (comment): / 12-10-2017 / 15:20:03 / stefan"
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1813
!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1814
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1815
generateSubProjectLines_bc_dot_mak         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1816
    ^ String streamContents:[:s |
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1817
        (self effectiveSubProjects:#win32) do:[:projectID |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1818
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1819
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1820
            mappings := self subProjectLine_bc_dot_mak_mappings: projectID.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1821
            newObjectLine := self replaceMappings: mappings
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1822
                                in: self subProjectLine_bc_dot_mak.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1823
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1824
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1825
        ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1826
    ]
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1827
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1828
    "
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1829
     exept_expecco_application generateSubProjectLines_bc_dot_mak 
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1830
     bosch_dapasx_application generateSubProjectLines_bc_dot_mak 
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1831
     cg_newCompiler_driver_stc generateSubProjectLines_bc_dot_mak 
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1832
    "
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1833
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1834
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1835
    "Modified: / 14-09-2006 / 18:46:09 / cg"
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1836
    "Modified (comment): / 17-01-2017 / 17:01:38 / stefan"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1837
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1838
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1839
generateSubProjectLines_make_dot_proto         
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1840
    ^ String streamContents:[:s |
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1841
        (self effectiveSubProjects:#unix) do:[:projectID |
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1842
            |mappings newObjectLine|
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1843
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1844
            mappings := self subProjectLine_make_dot_proto_mappings: projectID.
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1845
            newObjectLine := self replaceMappings: mappings
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  1846
                                in: self subProjectLine_make_dot_proto.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1847
            s nextPutAll:newObjectLine. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1848
            s cr. 
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1849
        ]
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1850
    ]
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1851
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1852
    "
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  1853
     exept_expecco_application generateSubProjectLines_make_dot_proto 
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1854
     cg_newCompiler_driver_stc generateSubProjectLines_make_dot_proto
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1855
    "
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1856
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1857
    "Created: / 09-08-2006 / 11:24:39 / fm"
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1858
    "Modified: / 14-09-2006 / 18:46:09 / cg"
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1859
    "Modified: / 17-01-2017 / 16:17:16 / stefan"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1860
!
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1861
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1862
generateSubProjectLines_modules_dot_stx
19474
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
  1863
    ^ String streamContents:[:s |
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1864
        (self effectiveSubProjects:#win32) do:[:projectID |
19474
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
  1865
            (self shouldBeLoadedInitially:projectID) ifFalse:[
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
  1866
                s nextPut:$*.
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1867
            ].
19474
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
  1868
            s nextPutLine:(self libraryNameFor:projectID).
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
  1869
        ].
c075c14786c0 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19442
diff changeset
  1870
    ].
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1871
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1872
    "
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  1873
     exept_expecco_application generateSubProjectLines_modules_dot_stx
12599
Claus Gittinger <cg@exept.de>
parents: 12549
diff changeset
  1874
     cg_newCompiler_driver_stc generateSubProjectLines_modules_dot_stx
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1875
    "
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1876
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1877
    "Modified: / 17-08-2006 / 17:22:37 / cg"
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1878
    "Modified: / 17-01-2017 / 16:17:36 / stefan"
12366
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1879
! !
a0ddcb78e9e2 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12332
diff changeset
  1880
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  1881
!ApplicationDefinition class methodsFor:'file templates'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  1882
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1883
bc_dot_def
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  1884
    "the template code for the bc.def file"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1885
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1886
^ 
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1887
'DESCRIPTION     %(DESCRIPTION)
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1888
CODE            PRELOAD MOVEABLE DISCARDABLE
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1889
SEGMENTS
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1890
    INITCODE    PRELOAD DISCARDABLE
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1891
'
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1892
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1893
    "Created: / 08-08-2006 / 12:26:58 / fm"
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1894
    "Modified: / 08-08-2006 / 19:32:27 / fm"
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  1895
    "Modified: / 17-08-2006 / 20:05:17 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1896
!
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  1897
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1898
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
  1899
    "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
  1900
     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
  1901
     $% characters have to be duplicated"
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1902
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
  1903
^ '# $','Header','$
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1904
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1905
# DO NOT EDIT 
14247
352a05db118a changed:
Claus Gittinger <cg@exept.de>
parents: 14229
diff changeset
  1906
# 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
  1907
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1908
# 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
  1909
# 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
  1910
#
13952
cf03aa21d8b7 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13876
diff changeset
  1911
# 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
  1912
#  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
  1913
#    (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
  1914
#  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
  1915
#    (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
  1916
#
19539
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1917
# Rules found here:
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1918
#   bmake 
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1919
#       - build everything, incl. a self installing exe for deployment
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1920
#   bmake exe
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1921
#       - only build the executable; to be executed and tested here
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1922
#   bmake setup
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1923
#       - make the self installing exe (assuming that the exe is already present)
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1924
#   bmake clean
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1925
#       - remove everything that is not needed to execute
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1926
#   bmake clobber
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1927
#       - remove everything that cannot be reconstructed by bmake
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1928
#
1b66cb26bdf7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19538
diff changeset
  1929
# For a 64bit build, replace bmake by mingwmake.
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1930
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1931
TOP=%(TOP)       
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1932
INCLUDE_TOP=$(TOP)\..
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  1933
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1934
# 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
  1935
#   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
  1936
# OLD_FILE=bmake.bat
15229
8883612b811e class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15228
diff changeset
  1937
OLD_FILE="c:\windows\win.ini"
8883612b811e class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15228
diff changeset
  1938
8883612b811e class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15228
diff changeset
  1939
#dummy target to force a build
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  1940
!!ifndef FORCE
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1941
FORCE=$(OLD_FILE)
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  1942
!!endif
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1943
13739
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1944
CFLAGS_LOCAL=$(CFLAGS_APPTYPE) \
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1945
 -DSTARTUP_CLASS="\"%(STARTUP_CLASS)\"" \
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1946
 -DSTARTUP_SELECTOR="\"%(STARTUP_SELECTOR)\"" \
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1947
 -DUSE_MODULE_TABLE
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1948
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1949
#
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1950
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1951
!!INCLUDE $(TOP)\rules\stdHeader_bc
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1952
!!INCLUDE Make.spec
69cf3bafa59d changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13735
diff changeset
  1953
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1954
OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1955
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1956
%(ADDITIONAL_DEFINITIONS)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1957
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1958
#
17044
f5b6a6f70b91 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17041
diff changeset
  1959
APPNAME=%(LIBRARY_NAME)
19289
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  1960
LIBNAME=%(LIBRARY_NAME)
17041
baed8c1a8aab class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 16548
diff changeset
  1961
MODULE_PATH=%(MODULE_PATH)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1962
STCOPT="+optinline"
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1963
LOCALINCLUDES=%(LOCAL_INCLUDES)
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1964
LOCALDEFINES=%(LOCAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1965
GLOBALDEFINES=%(GLOBAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1966
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  1967
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
  1968
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1969
LFLAGS=$(APP_LFLAGS)
13733
c754bc40cc1c changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13731
diff changeset
  1970
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1971
PROJECT_NOCONSOLE= %(NOCONSOLE_APPLICATION)
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1972
PROJECT_CONSOLE= %(CONSOLE_APPLICATION)
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1973
ALLOBJFILES= main.$(O)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1974
!!ifdef USETCC
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1975
RESFILES=
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1976
!!else
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  1977
RESFILES= %(RESFILENAME)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1978
!!endif
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1979
14348
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  1980
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
  1981
DEFFILE=$(TOP)\rules\bc_exe.def
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1982
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1983
LIBFILES=$(LIBDIR_LIBRUN)\librun.lib
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  1984
ALLLIB=$(LIBFILES) $(APP_IMPORTLIBS) $(APP_RT_LIB)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1985
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1986
REQUIRED_LIBS=librun.dll %(REQUIRED_LIBS)
14856
dd8ceb4bc14f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14855
diff changeset
  1987
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
  1988
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1989
SUBPROJECT_LIBS=%(SUBPROJECT_LIBS)
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  1990
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1991
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1992
13262
db9299594444 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13176
diff changeset
  1993
target: %(BUILD_TARGET) postBuildCleanup 
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1994
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  1995
# the executable, all required files and a self-installing-installer-exe
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  1996
ALL:: prereq ALL_NP
14855
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  1997
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  1998
# all, but no prereqs
23215
0968694abebb #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23052
diff changeset
  1999
ALL_NP:: exe $(REQUIRED_SUPPORT_DIRS) postBuildCleanup %(SUBPROJECTS_TARGET) setup
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2000
17187
f475f66a7e23 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17110
diff changeset
  2001
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
  2002
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2003
# the executable only
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  2004
# with console
13349
07d793af5c59 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13339
diff changeset
  2005
consoleApp: $(REQUIRED_LIBS)
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  2006
        -del main.$(O)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  2007
        $(MAKE) -N -f bc.mak $(USE_ARG) \
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2008
                MAKE_BAT=$(MAKE_BAT) \
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  2009
                PROJECT=$(PROJECT_CONSOLE) \
14362
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  2010
                CFLAGS_APPTYPE=" -DWIN32GUI $(CFLAGS_CONSOLE)" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  2011
                LFLAGS_APPTYPE=" $(LFLAGS_CONSOLE)" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  2012
                CRT_STARTUP=" $(CRT_STARTUP_CONSOLE)" theExe
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  2013
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  2014
# without console
13349
07d793af5c59 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13339
diff changeset
  2015
noConsoleApp: $(REQUIRED_LIBS)
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  2016
        -del main.$(O)
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  2017
        $(MAKE) -N -f bc.mak $(USE_ARG) \
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  2018
                MAKE_BAT=$(MAKE_BAT) \
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  2019
                PROJECT=$(PROJECT_NOCONSOLE) \
14362
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  2020
                CFLAGS_APPTYPE=" -DWIN32GUI $(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"%(NOCONSOLE_LOGFILE)\\"\""" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  2021
                LFLAGS_APPTYPE=" $(LFLAGS_NOCONSOLE)" \
e5bfa6e859c9 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14349
diff changeset
  2022
                CRT_STARTUP=" $(CRT_STARTUP_NOCONSOLE)" theExe
10415
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  2023
8d6ed7ea4c15 generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents: 10381
diff changeset
  2024
# 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
  2025
theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) 
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2026
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2027
# 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
  2028
prereq:
21262
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2029
        $(MAKE) -N -f bc.mak $(USE_ARG) FORCE=FORCE_BUILD makePrereq
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2030
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2031
makePrereq: $(REQUIRED_LIBS)
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2032
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  2033
subProjects:
21262
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2034
        $(MAKE) -N -f bc.mak $(USE_ARG) FORCE=FORCE_BUILD makeSubProjects
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2035
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2036
makeSubProjects: $(SUBPROJECT_LIBS)
21260
062fb24a264a #FEATURE by stefan
Stefan Vogel <sv@exept.de>
parents: 20602
diff changeset
  2037
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2038
FORCE_BUILD:
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2039
        @rem Dummy target to force a build
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2040
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2041
# a nullsoft installable delivery
13270
c5c2d8c49294 changed: #bc_dot_mak
Stefan Vogel <sv@exept.de>
parents: 13267
diff changeset
  2042
# This uses the Nullsoft Installer Package and works in Windows only
19538
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2043
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2044
!!if defined(USEMINGW64)
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2045
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2046
setup: $(PROJECT) postBuildCleanup %(NSI_FILENAME) 
20545
131ea01d7c55 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20544
diff changeset
  2047
        $(MAKENSIS) /DOBJ_DIR=objmingw /DSETUP_NAME=%(PRODUCT_FILENAME)Setup64 %(NSI_FILENAME)
19593
046fa2a1c68f #OTHER by sr
sr
parents: 19539
diff changeset
  2048
        %(ADDITIONAL_POSTNSISRULES64)
23592
09dc07be34ed #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 23590
diff changeset
  2049
        echo "Self installing exe created as: " %(NSI_FILENAME)
19538
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2050
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2051
!!else
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2052
13270
c5c2d8c49294 changed: #bc_dot_mak
Stefan Vogel <sv@exept.de>
parents: 13267
diff changeset
  2053
setup: $(PROJECT) postBuildCleanup %(NSI_FILENAME)
20545
131ea01d7c55 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20544
diff changeset
  2054
        $(MAKENSIS) /DOBJ_DIR=objbc /DSETUP_NAME=%(PRODUCT_FILENAME)Setup %(NSI_FILENAME)
18429
67b25723b25f class: ApplicationDefinition
sr
parents: 17578
diff changeset
  2055
        %(ADDITIONAL_POSTNSISRULES)
23592
09dc07be34ed #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 23590
diff changeset
  2056
        echo "Self installing exe created as: " %(NSI_FILENAME)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2057
19538
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2058
!!endif
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  2059
10648
c7d03f9184cb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10626
diff changeset
  2060
newBuildDate:
13270
c5c2d8c49294 changed: #bc_dot_mak
Stefan Vogel <sv@exept.de>
parents: 13267
diff changeset
  2061
        del buildDate.h
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2062
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2063
new:
12040
373a8b88bd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12025
diff changeset
  2064
        $(MAKE_BAT) clean
373a8b88bd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12025
diff changeset
  2065
        $(MAKE_BAT)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2066
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
  2067
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS %(ADDITIONAL_RESOURCE_TARGETS) \
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2068
        stx_RESOURCES stx_STYLES stx_BITMAPS
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2069
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2070
%(RESOURCE_RULES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2071
%(STX_RESOURCE_RULES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2072
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2073
%(APP_SOURCE_RULES)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2074
%(STX_SOURCE_RULES)
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2075
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2076
%(PREREQUISITES_LIBS)      
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2077
%(SUBPROJECTS_LINES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2078
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2079
show:
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2080
        @echo LFLAGS= $(LFLAGS)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2081
        @echo ALLOBJ= $(ALLOBJ)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2082
        @echo PROJECT= $(PROJECT)
14348
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  2083
        @echo APP_IMPORTLIBS= $(APP_IMPORTLIBS)
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2084
        @echo ALLLIB= $(ALLLIB)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2085
        @echo DEFFILE= $(DEFFILE)
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2086
        @echo ALLRES= $(ALLRES)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2087
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2088
!!ifdef USEBC
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2089
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  2090
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2091
        $(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
  2092
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  2093
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2094
        $(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
  2095
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2096
!!else
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2097
!! ifdef USEVC
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2098
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  2099
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2100
        $(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
  2101
            /MANIFEST /MANIFESTFILE:"$(PROJECT_CONSOLE).manifest" \
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2102
            /PDB:"$(PROJECT_CONSOLE).pdb" \
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  2103
            /SUBSYSTEM:CONSOLE $(ALLLIB) $(RESFILES)
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2104
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  2105
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2106
        $(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
  2107
            /MANIFEST /MANIFESTFILE:"$(PROJECT_NOCONSOLE).manifest" \
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2108
            /PDB:"$(PROJECT_NOCONSOLE).pdb" \
14343
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  2109
            /SUBSYSTEM:WINDOWS $(ALLLIB) $(RESFILES)
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2110
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2111
!! else
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  2112
!!  ifdef USELCC
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  2113
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  2114
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2115
        $(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
  2116
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  2117
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2118
        $(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
  2119
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  2120
!!  else
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  2121
!!   ifdef USETCC
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  2122
79ef0d2b90e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14341
diff changeset
  2123
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2124
        $(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
  2125
14341
e3955dc97725 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14340
diff changeset
  2126
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES)
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2127
        $(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
  2128
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  2129
!!   else
14645
29bcfa6db618 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14541
diff changeset
  2130
!!    if defined(USEMINGW32) || defined(USEMINGW64)
14346
813aaa40d640 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14343
diff changeset
  2131
14348
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  2132
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES) show
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2133
        $(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
  2134
fa28870e8e49 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14346
diff changeset
  2135
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) $(LIBFILES) show
14349
e747d861a46e changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14348
diff changeset
  2136
        $(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
  2137
813aaa40d640 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14343
diff changeset
  2138
!!    else
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2139
error error error
14346
813aaa40d640 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14343
diff changeset
  2140
!!    endif
14340
82d4d8746aaf oops - some pathnames are file-specific;
Claus Gittinger <cg@exept.de>
parents: 14338
diff changeset
  2141
!!   endif
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  2142
!!  endif
13735
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2143
!! endif
1a200ff15364 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13733
diff changeset
  2144
!!endif
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2145
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2146
!!INCLUDE $(TOP)\rules\stdRules_bc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2147
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2148
#
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2149
# additional rules
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2150
#
14856
dd8ceb4bc14f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14855
diff changeset
  2151
%(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
  2152
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  2153
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
  2154
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2155
main.c: $(TOP)\librun\main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2156
        copy $(TOP)\librun\main.c main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2157
14379
b6ea5a62d5e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14371
diff changeset
  2158
# now in stdRules.
b6ea5a62d5e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14371
diff changeset
  2159
#buildDate.h: $(GENDATE_UTILITIY)
b6ea5a62d5e3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14371
diff changeset
  2160
#        $(GENDATE_UTILITIY)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2161
14335
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  2162
librun.dll: $(TOP)\librun\$(OBJDIR_LIBRUN)\librun.dll
34f4df0f3b63 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14247
diff changeset
  2163
        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
  2164
19479
fe0c9de863d6 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19474
diff changeset
  2165
!!ifndef USEMINGW32        
fe0c9de863d6 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19474
diff changeset
  2166
!!ifndef USEMINGW64        
15370
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  2167
#cs3245.dll
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  2168
$(RT_DLL): $(TOP)\support\win32\borland\$(RT_DLL)
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  2169
        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
  2170
11688
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  2171
X11.dll: $(TOP)\support\win32\X11.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  2172
        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
  2173
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  2174
Xext.dll: $(TOP)\support\win32\Xext.dll
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  2175
        copy $(TOP)\support\win32\Xext.dll Xext.dll
19479
fe0c9de863d6 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19474
diff changeset
  2176
!!endif
fe0c9de863d6 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 19474
diff changeset
  2177
!!endif
11688
b52ff32e7e10 Install X11.dll and Xext.dll (Win32)
Stefan Vogel <sv@exept.de>
parents: 11678
diff changeset
  2178
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2179
symbols.stc: $(TOP)\include\symbols.stc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2180
        copy $(TOP)\include\symbols.stc symbols.stc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2181
10313
b6ce260fe8cf #additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents: 10308
diff changeset
  2182
%(ADDITIONAL_RULES)
b6ce260fe8cf #additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents: 10308
diff changeset
  2183
13686
4d60130a151f generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13562
diff changeset
  2184
%(ADDITIONAL_HEADERRULES)
13264
8e9a0a4c663c changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13263
diff changeset
  2185
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2186
clean::
14367
69f64e03c0c3 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14362
diff changeset
  2187
        -del genDate.exe genDate.com
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2188
        -del c0x32.dll
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2189
        -del c0x32.lib
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2190
        -del buildDate.h
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2191
        -del $(PROJECT)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2192
        -del install_%(APPLICATION).exe
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2193
        -del stx.lib
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2194
        -del stx.dll
15370
3744cff99c63 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15287
diff changeset
  2195
        -del $(RT_DLL)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2196
        -del $(REQUIRED_FILES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2197
        -del main.c
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2198
        -del *.log
14856
dd8ceb4bc14f class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14855
diff changeset
  2199
        -del *.$(RES)
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2200
        -rmdir /S /Q $(RESOURCES)
13957
6a1e255f9fdd changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13952
diff changeset
  2201
        -rmdir /S /Q $(OBJDIR)
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2202
11675
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  2203
clobber:: clean
1e019a06700f Building both stx.exe and stx.com
Stefan Vogel <sv@exept.de>
parents: 11674
diff changeset
  2204
        -del *.dll *.exe *.com
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2205
13265
aab6db288ffc changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13264
diff changeset
  2206
postBuildCleanup::
14891
7bf0716c431b class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14888
diff changeset
  2207
        @rem  stupid win-make does not allow empty
13265
aab6db288ffc changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13264
diff changeset
  2208
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2209
# 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
  2210
%(DEPENDENCIES)
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2211
# ENDMAKEDEPEND --- do not remove this line
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  2212
%(ADDITIONAL_RULES_HG)'.
10424
92ee1e31165b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10423
diff changeset
  2213
18429
67b25723b25f class: ApplicationDefinition
sr
parents: 17578
diff changeset
  2214
    "Modified: / 02-06-2015 / 17:40:03 / gg"
19289
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  2215
    "Modified: / 03-03-2016 / 21:15:43 / cg"
21262
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2216
    "Modified: / 19-01-2017 / 11:50:05 / stefan"
23592
09dc07be34ed #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 23590
diff changeset
  2217
    "Modified: / 29-12-2018 / 14:22:56 / Claus Gittinger"
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2218
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2219
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2220
bc_dot_mak_app_source_rules
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2221
    ^ String streamContents:[:s |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2222
        s nextPutAll:'
21925
d19035abe7ac #BUGFIX by sr
sr
parents: 21684
diff changeset
  2223
%(APPLICATION)_SOURCES: 
d19035abe7ac #BUGFIX by sr
sr
parents: 21684
diff changeset
  2224
        -mkdir sources\%(MODULE)\%(MODULE_PATH)
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2225
        -copy ..\*.st sources\%(MODULE)\%(MODULE_PATH)\..\*.*
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2226
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2227
'.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2228
    ]
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2229
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2230
    "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
  2231
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2232
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2233
bc_dot_mak_resource_rules
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2234
    ^ String streamContents:[:s |
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2235
        s nextPutAll:'
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2236
%(APPLICATION)_RESOURCES: $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2237
        -copy resources\*.rs $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\resources
23494
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  2238
',self generateResourceCopyLines_bc_mak,'
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2239
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2240
%(APPLICATION)_BITMAPS: $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\bitmaps
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2241
        -copy bitmaps\*.ico $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\bitmaps
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2242
        -copy bitmaps\*.gif $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\bitmaps
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2243
        -copy bitmaps\*.png $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\bitmaps
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2244
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2245
$(RESOURCES): 
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2246
        -mkdir $(RESOURCES)
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2247
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2248
$(RESOURCES)\%(MODULE): $(RESOURCES)
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2249
        -mkdir $(RESOURCES)\%(MODULE)
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2250
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2251
$(RESOURCES)\%(MODULE)\%(MODULE_PATH): $(RESOURCES)\%(MODULE)
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2252
        -mkdir $(RESOURCES)\%(MODULE)\%(MODULE_PATH)
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2253
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2254
$(RESOURCES)\%(MODULE)\%(MODULE_PATH)\bitmaps: $(RESOURCES)\%(MODULE)\%(MODULE_PATH)
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2255
        -mkdir $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\bitmaps
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2256
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2257
$(RESOURCES)\%(MODULE)\%(MODULE_PATH)\resources: $(RESOURCES)\%(MODULE)\%(MODULE_PATH)
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2258
        -mkdir $(RESOURCES)\%(MODULE)\%(MODULE_PATH)\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2259
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2260
'.
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2261
    ]
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2262
10378
12f4f3d800cb fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents: 10316
diff changeset
  2263
    "Modified: / 09-02-2007 / 16:13:43 / cg"
23494
72dea3b3fc38 #BUGFIX by sr
sr
parents: 23473
diff changeset
  2264
    "Modified: / 31-10-2018 / 15:35:00 / sr"
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2265
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2266
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2267
bc_dot_mak_stx_resource_rules
19963
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2268
    |rsrcs|
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2269
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2270
    self isGUIApplication ifTrue:[
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2271
        rsrcs := '
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2272
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2273
stx_RESOURCES: \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2274
        keyboard.rc \
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2275
        keyboardMacros.rc \
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2276
        host.rc \
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2277
        h_win32.rc \
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2278
        display.rc \
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2279
        d_win32.rc \
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2280
        libbasic_RESOURCES \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2281
        libview_RESOURCES \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2282
        libtool_RESOURCES  \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2283
        libtool2_RESOURCES
19963
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2284
'
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2285
    ] ifFalse:[
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2286
        rsrcs := '
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2287
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2288
stx_RESOURCES: \
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2289
        host.rc \
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2290
        libbasic_RESOURCES \
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2291
'
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2292
    ].
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2293
418b32a5d8fb #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19962
diff changeset
  2294
    ^ rsrcs , '
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2295
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2296
keyboard.rc: $(TOP)\projects\smalltalk\keyboard.rc
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2297
        copy $(TOP)\projects\smalltalk\keyboard.rc *.*
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2298
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2299
keyboardMacros.rc: $(TOP)\projects\smalltalk\keyboardMacros.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2300
        copy $(TOP)\projects\smalltalk\keyboardMacros.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2301
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2302
host.rc: $(TOP)\projects\smalltalk\host.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2303
        copy $(TOP)\projects\smalltalk\host.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2304
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2305
h_win32.rc: $(TOP)\projects\smalltalk\h_win32.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2306
        copy $(TOP)\projects\smalltalk\h_win32.rc *.*
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2307
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2308
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
  2309
        copy $(TOP)\projects\smalltalk\display.rc *.*
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2310
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2311
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
  2312
        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
  2313
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2314
$(RESOURCES)\stx:  $(RESOURCES)
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2315
        -mkdir $(RESOURCES)\stx
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2316
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2317
$(RESOURCES)\stx\libview:  $(RESOURCES)\stx
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2318
        -mkdir $(RESOURCES)\stx\libview
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2319
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2320
$(RESOURCES)\stx\libview\styles:  $(RESOURCES)\stx\libview
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2321
        -mkdir $(RESOURCES)\stx\libview\styles
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2322
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2323
$(RESOURCES)\stx\libview\resources:  $(RESOURCES)\stx\libview
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2324
        -mkdir $(RESOURCES)\stx\libview\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2325
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2326
$(RESOURCES)\stx\libview2:  $(RESOURCES)\stx
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2327
        -mkdir $(RESOURCES)\stx\libview2
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2328
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2329
$(RESOURCES)\stx\libview2\resources:  $(RESOURCES)\stx\libview2
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2330
        -mkdir $(RESOURCES)\stx\libview2\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2331
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2332
$(RESOURCES)\stx\libwidg:  $(RESOURCES)\stx
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2333
        -mkdir $(RESOURCES)\stx\libwidg
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2334
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2335
$(RESOURCES)\stx\libwidg\bitmaps:  $(RESOURCES)\stx\libwidg
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2336
        -mkdir $(RESOURCES)\stx\libwidg\bitmaps
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2337
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2338
$(RESOURCES)\stx\libbasic:  $(RESOURCES)\stx
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2339
        -mkdir $(RESOURCES)\stx\libbasic
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2340
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2341
$(RESOURCES)\stx\libbasic\resources:  $(RESOURCES)\stx\libbasic
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2342
        -mkdir $(RESOURCES)\stx\libbasic\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2343
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2344
$(RESOURCES)\stx\libtool:  $(RESOURCES)\stx
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2345
        -mkdir $(RESOURCES)\stx\libtool
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2346
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2347
$(RESOURCES)\stx\libtool\resources:  $(RESOURCES)\stx\libtool
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2348
        -mkdir $(RESOURCES)\stx\libtool\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2349
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2350
$(RESOURCES)\stx\libtool2:  $(RESOURCES)\stx
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2351
        -mkdir $(RESOURCES)\stx\libtool2
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2352
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2353
$(RESOURCES)\stx\libtool2\resources:  $(RESOURCES)\stx\libtool2
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2354
        -mkdir $(RESOURCES)\stx\libtool2\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2355
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2356
stx_STYLES: $(RESOURCES)\stx\libview\styles
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2357
        -copy $(TOP)\libview\styles\*.style $(RESOURCES)\stx\libview\styles\*.*
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2358
        -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
  2359
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2360
stx_BITMAPS: \
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2361
        libwidg_BITMAPS
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2362
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2363
libwidg_BITMAPS: $(RESOURCES)\stx\libwidg\bitmaps
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2364
        -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
  2365
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2366
libbasic_RESOURCES: $(RESOURCES)\stx\libbasic\resources 
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2367
        -copy $(TOP)\libbasic\resources\*.rs $(RESOURCES)\stx\libbasic\resources\*.*
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2368
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2369
libtool_RESOURCES: $(RESOURCES)\stx\libtool\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2370
        -copy $(TOP)\libtool\resources\*.rs $(RESOURCES)\stx\libtool\resources\*.*
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2371
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2372
libtool2_RESOURCES: $(RESOURCES)\stx\libtool2\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2373
        -copy $(TOP)\libtool2\resources\*.rs $(RESOURCES)\stx\libtool2\resources\*.*
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2374
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2375
libview_RESOURCES: $(RESOURCES)\stx\libview\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2376
        -copy $(TOP)\libview\resources\*.rs $(RESOURCES)\stx\libview\resources\*.*
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2377
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2378
libview2_RESOURCES: $(RESOURCES)\stx\libview2\resources
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2379
        -copy $(TOP)\libview2\resources\*.rs $(RESOURCES)\stx\libview2\resources\*.*
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2380
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2381
'.
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2382
!
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  2383
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2384
bc_dot_mak_stx_source_rules
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2385
    |libDirs|
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2386
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2387
    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
  2388
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2389
    ^ String streamContents:[:s |
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2390
        s nextPutAll:'
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2391
STX_SOURCES:'.
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2392
        libDirs do:[:libDir |
21925
d19035abe7ac #BUGFIX by sr
sr
parents: 21684
diff changeset
  2393
            s nextPutAll:' '; nextPutAll:('sources\stx\',libDir,'\')
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2394
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2395
        s cr.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2396
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2397
        libDirs do:[:libDir |
21925
d19035abe7ac #BUGFIX by sr
sr
parents: 21684
diff changeset
  2398
            s nextPutLine:('sources\stx\',libDir,'\:').
d19035abe7ac #BUGFIX by sr
sr
parents: 21684
diff changeset
  2399
            s tab; nextPutLine:('-mkdir sources\stx\',libDir).
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2400
            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
  2401
            s cr.
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2402
        ].
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2403
    ]
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2404
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2405
    "Created: / 15-05-2007 / 17:27:37 / cg"
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2406
!
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  2407
19628
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2408
bmake_dot_mak
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2409
    "the template code for the bmake.bat file
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2410
     Notice: duplicate %'s if they are needed as such in the generated file"
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2411
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2412
    ^
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2413
'@REM -------
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2414
@REM make using Borland bcc32
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2415
@REM type bmake, and wait...
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2416
@REM do not edit - automatically generated from ProjectDefinition
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2417
@REM -------
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2418
@SET DEFINES=
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2419
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2420
make.exe -N -f bc.mak  %%DEFINES%% %%*
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2421
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2422
@IF "%%1" EQU "exe" exit /b 0
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2423
@IF "%%1" EQU "setup" exit /b 0
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2424
@IF "%%1" EQU "pluginSetup" exit /b 0
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2425
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2426
%(SUBPROJECT_BMAKE_CALLS)
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2427
'
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2428
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2429
    "Created: / 17-08-2006 / 20:04:14 / cg"
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2430
    "Modified: / 04-09-2012 / 11:46:22 / cg"
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2431
!
253aa84211d2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19593
diff changeset
  2432
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2433
buildDate_dot_h
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2434
    "the template code for the buildDate.h file"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2435
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2436
^ 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2437
'#define BUILD_DATE "%(BUILDDATE)"'
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2438
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2439
    "Created: / 30-08-2006 / 19:18:34 / cg"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2440
!
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  2441
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2442
classLine_modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2443
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2444
^'_%(CLASS)_Init,'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2445
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2446
    "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
  2447
    "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
  2448
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2449
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2450
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
  2451
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2452
^'extern void _%(CLASS)_Init();'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2453
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2454
    "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
  2455
    "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
  2456
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2457
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2458
defineAPPSourceLine_nsi_for: projectID
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2459
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2460
^      
10568
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  2461
'   
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  2462
    SetOutPath "$INSTDIR\sources\',(self moduleFor: projectID),'\',(self moduleDirectory_win32For:projectID) ,'"
a06d9c432529 *** empty log message ***
fm
parents: 10566
diff changeset
  2463
    File /r "${STX_ROOT}\', (self moduleFor: projectID) ,'\',(self moduleDirectory_win32For:projectID) ,'\*.st"'
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2464
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2465
    "Created: / 15-10-2006 / 12:50:00 / cg"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2466
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2467
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2468
defineExtenionLine_nsi_for:extension
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2469
    "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
  2470
11678
0121d26d67bf nsis file generation
Stefan Vogel <sv@exept.de>
parents: 11677
diff changeset
  2471
    ^ '  WriteRegStr HKCR ".',extension,'" "" "%(MODULE_KEY).%(PRODUCT_FILENAME).1"'
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2472
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2473
    "Created: / 15-10-2006 / 12:50:00 / cg"
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2474
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  2475
15393
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2476
defineExtensionLine_nsi_for:extension 
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2477
    "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
  2478
    
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2479
    ^ '  WriteRegStr HKCR ".' , extension 
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2480
        , '" "" "%(MODULE_KEY).%(PRODUCT_FILENAME).1"'
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2481
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2482
    "Created: / 15-10-2006 / 12:50:00 / cg"
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2483
!
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  2484
10565
608e0f1ba668 optional source distribution
fm
parents: 10563
diff changeset
  2485
defineSTXSourceLine_nsi_for: projectID
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2486
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2487
^      
10572
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  2488
'  
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  2489
    SetOutPath "$INSTDIR\sources\stx\', (self moduleDirectory_win32For:projectID),'"
41e966471313 *** empty log message ***
fm
parents: 10568
diff changeset
  2490
    File /r "${STX_ROOT}\stx\', (self moduleDirectory_win32For:projectID),'\*.st"'
10563
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2491
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2492
    "Created: / 15-10-2006 / 12:50:00 / cg"
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2493
!
b30a750bd9ce *** empty log message ***
fm
parents: 10547
diff changeset
  2494
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2495
extensionsLine_modules_dot_c
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2496
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2497
    ^'_%(CLASS)_extensions_Init,'
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2498
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2499
    "Created: / 18-11-2010 / 10:36:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2500
!
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2501
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2502
extensionsLine_modules_dot_c_extern
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2503
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2504
    ^'extern void _%(CLASS)_Init();'
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2505
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2506
    "Created: / 03-03-2011 / 19:13:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2507
!
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  2508
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2509
installFileLine_nsi_for:filePattern
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2510
    "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
  2511
11677
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2512
    (filePattern startsWith:'SetOutPath ') ifTrue:[
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2513
        ^ filePattern.
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2514
    ].        
43de2b6e41fb remove duplicate *.rc in nsis installer
Stefan Vogel <sv@exept.de>
parents: 11676
diff changeset
  2515
23590
617fe6b2b759 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23522
diff changeset
  2516
    ^  '  File /nonfatal ', filePattern
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2517
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2518
    "Created: / 01-03-2007 / 20:00:20 / cg"
23590
617fe6b2b759 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23522
diff changeset
  2519
    "Modified: / 29-12-2018 / 14:17:45 / Claus Gittinger"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2520
!
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  2521
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2522
linuxSetupRules
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2523
    "this is sliced into the generated Make.proto file"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2524
    
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2525
    ^ '
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2526
#
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2527
# for linux, this uses autopackage
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2528
# (SETUP_RULE is set to setup_linux)
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2529
setup_linux:
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2530
        @if test -d autopackage; then \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2531
            makepackage; \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2532
        else \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2533
            echo "Error: missing autopackage directory"; \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2534
            exit 1; \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2535
        fi
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2536
        
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2537
# backward compatible fallback
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2538
setup::
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2539
        @if test -d autopackage; then \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2540
            makepackage; \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2541
        else \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2542
            echo "Error: make setup not yet available in this unix"; \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2543
            exit 1; \
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2544
        fi
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2545
'
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2546
!
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2547
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2548
make_dot_proto
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2549
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2550
^
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2551
'# $','Header','$
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2552
#
14247
352a05db118a changed:
Claus Gittinger <cg@exept.de>
parents: 14229
diff changeset
  2553
# 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
  2554
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2555
# -------------- no need to change anything below ----------
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2556
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2557
# This makefile generates some standalone demo applications
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2558
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2559
#    make
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2560
#       generates %(APPLICATION)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2561
#
23855
71a77c0b2db2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 23592
diff changeset
  2562
#    export MAKE_ARGS=-j4 ; make
71a77c0b2db2 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 23592
diff changeset
  2563
#
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2564
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2565
TOP=%(TOP)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2566
INCLUDE_TOP=$(TOP)/..
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2567
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2568
# 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
  2569
FORCE=
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2570
.PHONY: $(FORCE)
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2571
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2572
PACKAGE=%(APPLICATION_PACKAGE)
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2573
SUBDIRS=
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2574
SUPPRESS_LOCAL_ABBREVS="yes"
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2575
NOAUTOLOAD=1
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2576
NOSUBAUTOLOAD=1
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2577
14940
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2578
LOCALINCLUDES=%(LOCAL_INCLUDES)
10978
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  2579
LOCALDEFINES=%(LOCAL_DEFINES)
6028cdeaad20 Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10977
diff changeset
  2580
GLOBALDEFINES=%(GLOBAL_DEFINES)
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
  2581
MAIN_DEFINES=%(MAIN_DEFINES)
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2582
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2583
RCSSOURCES=Make.proto *.st
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2584
LINKSOURCES=Make.proto *.st
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2585
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2586
DELIVERBINARIES=
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2587
17096
fbfea8d21523 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17044
diff changeset
  2588
APPNAME=%(LIBRARY_NAME)
10803
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2589
LIBNAME=%(LIBRARY_NAME)
13876
db71f66f14ea -headerDir= instead of --headerDir=
Claus Gittinger <cg@exept.de>
parents: 13864
diff changeset
  2590
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
  2591
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2592
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2593
# ********** OPTIONAL: MODIFY the next line ***
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2594
# 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
  2595
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2596
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2597
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2598
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2599
# ********** OPTIONAL: MODIFY the next line ***
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2600
# 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
  2601
LOCAL_EXTRA_TARGETS=
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2602
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2603
OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2604
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2605
%(ADDITIONAL_DEFINITIONS)
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2606
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2607
%(ADDITIONAL_DEFINITIONS_SVN)
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2608
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2609
LIBLIST = $(REQUIRED_LIBS)
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2610
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2611
# required libs:
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2612
#
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2613
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2614
REQUIRED_LIBS=%(REQUIRED_LIBS)
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2615
REQUIRED_LIBOBJS=%(REQUIRED_LIBOBJS)
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2616
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
  2617
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2618
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2619
SUBPROJECT_LIBS=%(SUBPROJECT_LIBS)
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2620
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2621
target: %(BUILD_TARGET)
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2622
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2623
all::   prereq ALL_NP
14666
51ea41869723 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14645
diff changeset
  2624
14855
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  2625
# like ALL, but not prereqs
21262
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2626
ALL_NP:: exe subProjects $(REQUIRED_SUPPORT_DIRS) $(SETUP_RULE)
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2627
17110
67281f682da7 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17096
diff changeset
  2628
exe:    %(APPLICATION) registerApplication
14945
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2629
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2630
%(APPLICATION): $(APP_DIRS_TO_MAKE) $(APP_LIBOBJS) $(REQUIRED_LIBOBJS) $(OBJS)
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2631
        $(MAKE) link_%(APPLICATION)
752e883e59cc class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14940
diff changeset
  2632
14855
bc2229332ede class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14841
diff changeset
  2633
14666
51ea41869723 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14645
diff changeset
  2634
link_%(APPLICATION):
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2635
        $(MAKE) %(APPLICATION_TYPE) \
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2636
                    TARGET=%(APPLICATION) \
12544
d518ef408c6b changed: #make_dot_proto
Stefan Vogel <sv@exept.de>
parents: 12542
diff changeset
  2637
                    APPLICATION_CLASSES="$(COMMON_CLASSES) $(UNIX_CLASSES)" \
10803
ca8a31c9ef0e Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents: 10801
diff changeset
  2638
                    APPLICATION_OBJS="$(OBJS)" \
10714
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2639
                    APPLICATION_LIBLIST="$(REQUIRED_LIBS)" \
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2640
                    APPLICATION_LIBOBJS="$(REQUIRED_LIBOBJS)" \
3f12a32aad61 *** empty log message ***
fm
parents: 10708
diff changeset
  2641
                    APPLICATION_LINK_LIBOBJS="$(REQUIRED_LINK_LIBOBJS)" \
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2642
                    STARTUP_CLASS="%(STARTUP_CLASS)" \
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2643
                    STARTUP_SELECTOR="%(STARTUP_SELECTOR)" \
11549
259343206ef3 mainDefines
Claus Gittinger <cg@exept.de>
parents: 11480
diff changeset
  2644
                    MAIN_DEFINES="%(MAIN_DEFINES)"
10708
0d2357899fb6 *** empty log message ***
fm
parents: 10648
diff changeset
  2645
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2646
# 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
  2647
prereq:
14989
50e655bdbcfa class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14979
diff changeset
  2648
        $(MAKE) FORCE=@@@FORCE-BUILD@@@ $(REQUIRED_LIBOBJS)
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  2649
21262
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2650
subProjects:
22313
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  2651
        %(SUBPROJECT_RULE)
21262
1b36eec001b9 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21261
diff changeset
  2652
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2653
#
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2654
# a self installable delivery
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2655
#
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2656
',self linuxSetupRules,'
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2657
',self osxSetupRules,'
15204
c17dc61ba210 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15203
diff changeset
  2658
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2659
SOURCEFILES: %(APPLICATION)_SOURCES \
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2660
        stx_SOURCES
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2661
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2662
%(SOURCE_RULES)
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2663
%(STX_SOURCE_RULES)
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2664
11620
afd3022b74d7 additionalResourceTargets
Claus Gittinger <cg@exept.de>
parents: 11619
diff changeset
  2665
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
  2666
        stx_RESOURCES stx_STYLES stx_BITMAPS
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2667
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2668
%(RESOURCE_RULES)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2669
%(STX_RESOURCE_RULES)
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2670
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2671
%(PREREQUISITES_LIBS)
15869
a5904583d6e7 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15826
diff changeset
  2672
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  2673
%(SUBPROJECTS_LINES)
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2674
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  2675
%(ADDITIONAL_RULES)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2676
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2677
%(ADDITIONAL_RULES_SVN)
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2678
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  2679
%(ADDITIONAL_RULES_HG)
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  2680
13686
4d60130a151f generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13562
diff changeset
  2681
%(ADDITIONAL_HEADERRULES)
4d60130a151f generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13562
diff changeset
  2682
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2683
clean::
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2684
        -rm -f *.so *.dylib %(APPLICATION).$(O) *.$(H)
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2685
10807
ab4e65750d0b Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10803
diff changeset
  2686
clobber:: clean
24044
67625a62dbff #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23855
diff changeset
  2687
        -rm -f %(APPLICATION) *.img *.sav
67625a62dbff #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23855
diff changeset
  2688
        -rm -rf $(RESOURCES)
11381
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2689
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2690
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2691
%(DEPENDENCIES)
888874781f38 Dependencies for unix.
Stefan Vogel <sv@exept.de>
parents: 11378
diff changeset
  2692
# ENDMAKEDEPEND --- do not remove this line
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2693
'
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2694
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2695
    "Modified: / 09-08-2006 / 16:50:23 / fm"
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2696
    "Created: / 29-09-2006 / 23:47:07 / cg"
12025
2109b55d9481 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11830
diff changeset
  2697
    "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
  2698
    "Modified: / 26-07-2012 / 00:57:07 / cg"
15951
fdcadd92a7db merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 15880
diff changeset
  2699
    "Modified: / 28-11-2012 / 10:18:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
22313
62696acd3802 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 21925
diff changeset
  2700
    "Modified: / 12-10-2017 / 15:32:00 / stefan"
24044
67625a62dbff #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23855
diff changeset
  2701
    "Modified: / 03-04-2019 / 15:08:32 / Claus Gittinger"
10023
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2702
!
483d74883849 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10000
diff changeset
  2703
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2704
make_dot_proto_app_source_rules
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2705
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2706
    ^ String streamContents:[:s |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2707
        s
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2708
          cr;
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2709
          nextPutAll: '%(APPLICATION)_SOURCES: '.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2710
        self appSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2711
            s nextPutAll: ' \
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2712
        ', (self make_dot_proto_source_title_for: projectID).
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2713
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2714
        s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2715
        self appSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2716
            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
  2717
            s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2718
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2719
    ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2720
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2721
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2722
make_dot_proto_app_source_rules_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2723
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2724
    | module moduleDirectory|
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2725
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2726
    module := self moduleFor: projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2727
    moduleDirectory := self moduleDirectoryFor:projectID.
19504
7ba6cd9ec5b3 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19479
diff changeset
  2728
    ^ String lf,
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2729
    (self make_dot_proto_source_title_for: projectID), ':
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2730
        -mkdir -p sources/', module,'/', moduleDirectory, '
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2731
        cp $(TOP)/../', module, '/', moduleDirectory,'/*.st sources/', module,'/', moduleDirectory.
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2732
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2733
    "Modified: / 08-11-2018 / 10:41:10 / Claus Gittinger"
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2734
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2735
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2736
make_dot_proto_resource_rules
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2737
    ^ String streamContents:[:s |
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2738
        s nextPutAll:'
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2739
%(APPLICATION)_RESOURCES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2740
        -mkdir -p $(RESOURCES)/%(MODULE)/%(MODULE_PATH)/resources
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2741
        -cp ../resources/*.rs $(RESOURCES)/%(MODULE)/%(MODULE_PATH)/resources
23473
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  2742
',self generateResourceCopyLines_make_dot_proto,'
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2743
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2744
%(APPLICATION)_BITMAPS: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2745
        -mkdir -p $(RESOURCES)/%(MODULE)/%(MODULE_PATH)/bitmaps
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2746
        -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
  2747
'.
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2748
    ].
23473
68c1fe4de19e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23472
diff changeset
  2749
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2750
    "Modified: / 08-11-2018 / 10:40:06 / Claus Gittinger"
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2751
!
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2752
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2753
make_dot_proto_source_title_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2754
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2755
    |packageName |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2756
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2757
    packageName := self packageNameFor: projectID.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2758
    ^ packageName, '_SOURCES'
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2759
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2760
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2761
make_dot_proto_stx_resource_rules
15203
a7bafdd2965b class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15166
diff changeset
  2762
    self isGUIApplication ifFalse:[
a7bafdd2965b class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15166
diff changeset
  2763
        "/ non-GUI app: only include libbasic resources (for Date)
14940
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2764
        ^ '
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2765
stx_RESOURCES: \
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2766
        libbasic_RESOURCES
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2767
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2768
stx_STYLES: 
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2769
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2770
stx_BITMAPS:
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2771
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2772
libbasic_RESOURCES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2773
        -mkdir -p $(RESOURCES)/stx/libbasic
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2774
        -cp $(TOP)/libbasic/resources/*.* $(RESOURCES)/stx/libbasic
14940
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2775
'
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2776
    ].
72ecd0c0eb56 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14891
diff changeset
  2777
15203
a7bafdd2965b class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15166
diff changeset
  2778
    "/ 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
  2779
    ^ '
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2780
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2781
stx_RESOURCES: \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2782
        keyboard.rc \
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2783
        keyboardMacros.rc \
11007
50faeb5cae88 also copy display.rc and d_win32.rc.
Claus Gittinger <cg@exept.de>
parents: 10996
diff changeset
  2784
        display.rc \
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2785
        libbasic_RESOURCES \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2786
        libview_RESOURCES \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2787
        libtool_RESOURCES  \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2788
        libtool2_RESOURCES
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2789
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2790
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
  2791
        cp $(TOP)/projects/smalltalk/keyboard.rc .
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2792
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2793
keyboardMacros.rc: $(TOP)/projects/smalltalk/keyboardMacros.rc
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2794
        cp $(TOP)/projects/smalltalk/keyboardMacros.rc .
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  2795
11029
3a3e0179cb06 No $\ as path separator in unix Make.proto files
Stefan Vogel <sv@exept.de>
parents: 11017
diff changeset
  2796
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
  2797
        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
  2798
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2799
stx_STYLES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2800
        -mkdir -p $(RESOURCES)/stx/libview
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2801
        -mkdir -p $(RESOURCES)/stx/libview/styles
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2802
        cp $(TOP)/libview/styles/*.common $(RESOURCES)/stx/libview/styles
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2803
        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
  2804
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2805
stx_BITMAPS: \
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2806
        libwidg_BITMAPS
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2807
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2808
libwidg_BITMAPS: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2809
        -mkdir -p $(RESOURCES)/stx/libwidg/bitmaps
23436
0d11b24cf21f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23435
diff changeset
  2810
        -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
  2811
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2812
libbasic_RESOURCES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2813
        -mkdir -p $(RESOURCES)/stx/libbasic/resources
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2814
        -cp $(TOP)/libbasic/resources/*.* $(RESOURCES)/stx/libbasic/resources
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2815
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2816
libtool_RESOURCES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2817
        -mkdir -p $(RESOURCES)/stx/libtool/resources
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2818
        -cp $(TOP)/libtool/resources/*.* $(RESOURCES)/stx/libtool/resources
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2819
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2820
libtool2_RESOURCES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2821
        -mkdir -p $(RESOURCES)/stx/libtool2/resources
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2822
        -cp $(TOP)/libtool2/resources/*.* $(RESOURCES)/stx/libtool2/resources
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2823
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2824
libview_RESOURCES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2825
        -mkdir -p $(RESOURCES)/stx/libview/resources
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2826
        -cp $(TOP)/libview/resources/*.* $(RESOURCES)/stx/libview/resources
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2827
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2828
libview2_RESOURCES: 
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2829
        -mkdir -p $(RESOURCES)/stx/libview2/resources
23447
56d9f9b89345 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23444
diff changeset
  2830
        -cp $(TOP)/libview2/resources/*.* $(RESOURCES)/stx/libview2/resources
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2831
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2832
bitmaps:
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2833
        -mkdir -p bitmaps
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2834
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2835
doc:
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2836
        -mkdir -p doc
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2837
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2838
'.
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2839
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2840
    "Modified: / 08-11-2018 / 10:40:54 / Claus Gittinger"
10874
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2841
!
c5ee23aeedc2 Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents: 10873
diff changeset
  2842
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2843
make_dot_proto_stx_source_rules
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2844
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2845
    ^ String streamContents:[:s |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2846
        s
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2847
          cr;
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2848
          nextPutAll: 'stx_SOURCES: '.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2849
        self stxSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2850
            s nextPutAll: '\
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2851
        ', (self make_dot_proto_source_title_for: projectID).
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2852
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2853
        s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2854
        self stxSourcesProjects do:[:projectID |
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2855
            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
  2856
            s cr; cr.
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2857
        ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2858
    ].
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2859
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2860
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2861
make_dot_proto_stx_source_rules_for: projectID
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2862
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2863
    | moduleDirectory|
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2864
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2865
    moduleDirectory := self moduleDirectoryFor:projectID.
19504
7ba6cd9ec5b3 #REFACTORING
Claus Gittinger <cg@exept.de>
parents: 19479
diff changeset
  2866
    ^ String lf,
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2867
    (self make_dot_proto_source_title_for: projectID), ':
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2868
        -mkdir -p sources/stx/', moduleDirectory, '
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2869
        cp $(TOP)/', moduleDirectory,'/*.st sources/stx/', moduleDirectory.
23522
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2870
694b93282ba4 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23494
diff changeset
  2871
    "Modified: / 08-11-2018 / 10:41:02 / Claus Gittinger"
10990
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2872
!
b64d3c609143 make_dot_proto source rules for stx and app
fm
parents: 10978
diff changeset
  2873
9961
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2874
modules_dot_c
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2875
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2876
^ 
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2877
'/* $','Header','$
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2878
 *
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2879
 * DO NOT EDIT 
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2880
 * 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
  2881
 *
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2882
 * 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
  2883
 * 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
  2884
 */
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2885
typedef void (*vf)();
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2886
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2887
%(EXTERN_INIT_NAME_LIST)
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2888
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2889
static vf modules[] = {
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2890
    %(INIT_LIST)
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2891
    (vf)0
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2892
};
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2893
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2894
vf *__modules__ = modules;
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2895
'
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2896
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2897
    "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
  2898
!
c3bd31c4af2f also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9958
diff changeset
  2899
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2900
modules_dot_stx
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  2901
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2902
^ 
9542
06d0781c889c *** empty log message ***
fm
parents: 9539
diff changeset
  2903
'# $','Header','$
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2904
#
9578
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2905
# DO NOT EDIT 
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2906
# automagically generated from the projectDefinition: ',self name,'.
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2907
#
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2908
# Warning: once you modify this file, do not rerun
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2909
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
6e1a64b3cda8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9567
diff changeset
  2910
#
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2911
# This file is (currently) only used with win-95 / win-NT versions of STX.
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2912
# 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
  2913
# Notice, lines starting with a "#" are comments.
cb0e2cfd6558 changed: #modules_dot_stx
Claus Gittinger <cg@exept.de>
parents: 12995
diff changeset
  2914
# 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
  2915
# by the application at the very beginning.
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2916
#
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2917
# 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
  2918
# Others might be autoloaded or loaded explicit using "Smalltalk loadPackage:xxx".
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2919
#
10506
c07090762a88 recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents: 10427
diff changeset
  2920
%(ALLPREREQUISITE_LIBS)
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2921
'
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2922
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2923
    "Created: / 08-08-2006 / 12:26:58 / fm"
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2924
    "Modified: / 08-08-2006 / 19:32:27 / fm"
9542
06d0781c889c *** empty log message ***
fm
parents: 9539
diff changeset
  2925
    "Modified: / 16-08-2006 / 17:56:58 / User"
13123
cb0e2cfd6558 changed: #modules_dot_stx
Claus Gittinger <cg@exept.de>
parents: 12995
diff changeset
  2926
    "Modified: / 09-11-2010 / 11:57:39 / cg"
9535
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2927
!
ce5e1b8a240d *** empty log message ***
fm
parents: 9532
diff changeset
  2928
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2929
osxDmgImageSetupLines
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2930
    "generate (OSX unix) copy commands to generate a directory holding the dmg prototype image directory.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2931
     This is used to generate a macOS deployable dmg containing an app"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2932
23438
94a7e26cb6d3 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 23436
diff changeset
  2933
    |genLine product productFile dmgVolume dmgDir appDir contentsDir macOSDir 
23451
919b0ee3c96e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23447
diff changeset
  2934
     resourcesDir packagesDir dirsMade|
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2935
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2936
    product := self productName.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2937
    productFile := self productFilename.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2938
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2939
    dmgVolume := productFile,'.dmg'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2940
    dmgDir := productFile,'_dmg'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2941
    appDir := dmgDir,'/',productFile,'.app'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2942
    contentsDir := appDir,'/Contents'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2943
    macOSDir := contentsDir,'/MacOS'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2944
    resourcesDir := contentsDir,'/Resources'.
23451
919b0ee3c96e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23447
diff changeset
  2945
    packagesDir := contentsDir,'/Packages'.
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2946
    dirsMade := Set new.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2947
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2948
    genLine :=
21508
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
  2949
        [:stream :dstDir :srcAndDest |
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2950
            |sourcePattern relPath destination|
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2951
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2952
            sourcePattern := srcAndDest first.
23469
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2953
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2954
            relPath := srcAndDest second.
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2955
            (relPath startsWith:'bin') ifTrue:[
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2956
                relPath := '.',(relPath copyFrom:4)
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2957
            ].
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2958
            destination := contentsDir,'/',dstDir,'/',relPath.
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2959
            (dirsMade includes:destination) ifFalse:[
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2960
                stream tab; nextPutLine:('@-mkdir -p "%1"' bindWith:destination).
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2961
                dirsMade add:destination.
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2962
            ].
6d008d50351e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23466
diff changeset
  2963
            sourcePattern notNil ifTrue:[
23472
bdd9c7db361f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23469
diff changeset
  2964
                sourcePattern ~= 'resources' ifTrue:[
bdd9c7db361f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23469
diff changeset
  2965
                    stream tab; nextPutLine:('-cp -r %1 "%2"' bindWith:sourcePattern with:destination).
23466
702c6d257ea2 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23465
diff changeset
  2966
                ].
21508
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
  2967
            ].
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2968
        ].
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2969
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2970
    ^ String streamContents:[:s |
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2971
        s tab; nextPutLine:('@-rm -rf "%1"' bindWith:dmgDir).
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2972
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:dmgDir).  dirsMade add:dmgDir.
21570
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
  2973
        self osxVolumeIconImageFileName notNil ifTrue:[
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  2974
            s tab; nextPutLine:('@-cp "%1" "%2"/.VolumeIcon.icns' bindWith:self osxVolumeIconImageFileName with:dmgDir).
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  2975
        ].
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  2976
        self applicationReadMeFileNameOSX notNil ifTrue:[
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  2977
            s tab; nextPutLine:('@-cp "%1" "%2"/' bindWith:self applicationReadMeFileNameOSX with:dmgDir).
21570
884bfe3dd111 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 21568
diff changeset
  2978
        ].
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  2979
        s tab; nextPutLine:('(pushd "%1"; ln -s /Applications ./Applications; popd)' bindWith:dmgDir).
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2980
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:appDir).  dirsMade add:appDir.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2981
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:contentsDir).  dirsMade add:contentsDir.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2982
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:macOSDir).  dirsMade add:macOSDir.
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  2983
        "/ this is done indirectly, by additionalFilesToInstall_XXX
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  2984
        "/ s tab; nextPutLine:('@-mkdir "%1"/packages' bindWith:macOSDir).  dirsMade add:(macOSDir,'/packages').
23451
919b0ee3c96e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23447
diff changeset
  2985
        "/ s tab; nextPutLine:('@$(MAKE) RESOURCEFILES RESOURCES="%1"' bindWith:resourcesDir).
23461
a240076e0cd3 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23460
diff changeset
  2986
        s tab; nextPutLine:('@-mkdir "%1"' bindWith:resourcesDir).  dirsMade add:resourcesDir.
23466
702c6d257ea2 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23465
diff changeset
  2987
        "/ s tab; nextPutLine:('@-mkdir "%1"' bindWith:packagesDir).  dirsMade add:packagesDir.
702c6d257ea2 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23465
diff changeset
  2988
        "/ s tab; nextPutLine:('@$(MAKE) RESOURCEFILES RESOURCES="%1"' bindWith:packagesDir).
702c6d257ea2 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23465
diff changeset
  2989
        s tab; nextPutLine:('@$(MAKE) RESOURCEFILES RESOURCES="%1"' bindWith:resourcesDir).
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2990
        s tab; nextPutLine:('cp "',self applicationName,'" "',macOSDir,'/"').
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  2991
        s tab; nextPutLine:('@-cp osx/Info.plist "',contentsDir,'/"').
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  2992
        self osxDmgBackgroundImageFile notNil ifTrue:[
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  2993
            s tab; nextPutLine:('@-mkdir "%1"/.background' bindWith:dmgDir).
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  2994
            s tab; nextPutLine:('@-cp "%1" "%2"/.background/banner.png' bindWith:self osxDmgBackgroundImageFile with:dmgDir).
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  2995
        ].
21560
ac7cd1dee195 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21554
diff changeset
  2996
        self applicationIconFileNameOSX notNil ifTrue:[
23461
a240076e0cd3 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23460
diff changeset
  2997
            s tab; nextPutLine:('@-cp "osx/%1" "%2/"' bindWith:self applicationIconFileNameOSX with:resourcesDir).
21560
ac7cd1dee195 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21554
diff changeset
  2998
        ].    
21508
d43421c8984c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21502
diff changeset
  2999
        self additionalTargetDirectoriesToMakeForInstall_osx do:[:each | genLine value:s value:'MacOS' value:{ nil . each}].     
20602
0b81976fbba1 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 20596
diff changeset
  3000
        "/ s tab; nextPutLine:('@-cp osx/PkgInfo "',contentsDir,'/"').
23466
702c6d257ea2 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23465
diff changeset
  3001
        self commonFilesToInstall_unix do:[:eachPair | 
702c6d257ea2 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23465
diff changeset
  3002
                genLine value:s value:'MacOS' value:eachPair
702c6d257ea2 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23465
diff changeset
  3003
        ].
23472
bdd9c7db361f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23469
diff changeset
  3004
        s tab; nextPutLine:('-cp -r %1 "%2"' bindWith:'.resources' with:resourcesDir).
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3005
        s tab; nextPutLine:('@-rm "%1/"*WINrc.rc' bindWith:macOSDir).
21514
2e99b3743587 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21508
diff changeset
  3006
        s tab; nextPutLine:('@-rm "%1/"*WinRC.rc' bindWith:macOSDir).
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3007
        self additionalFilesToInstall_unix do:[:eachPair | genLine value:s value:'MacOS' value:eachPair].
21501
1f27e0a15ac5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21262
diff changeset
  3008
        self additionalFilesToInstall_osx do:[:eachPair | genLine value:s value:'MacOS' value:eachPair].
23465
ec95b496db76 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23463
diff changeset
  3009
        "/ s tab; nextPutLine:('@-rm -f "%1/"*/*.sav "%1/"*/*/*.sav "%1/"*/*/*/*.sav' bindWith:macOSDir).
ec95b496db76 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23463
diff changeset
  3010
        "/ s tab; nextPutLine:('@-rm -f "%1/"*/*.bak "%1/"*/*/*.bak "%1/"*/*/*/*.bak' bindWith:macOSDir).
ec95b496db76 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23463
diff changeset
  3011
        s tab; nextPutLine:('@-find "%1/" -name "*.bak" -exec rm {} \;' bindWith:contentsDir).
ec95b496db76 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23463
diff changeset
  3012
        s tab; nextPutLine:('@-find "%1/" -name "*.sav" -exec rm {} \;' bindWith:contentsDir).
ec95b496db76 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23463
diff changeset
  3013
        s tab; nextPutLine:('@-find "%1/" -name "CSV" -exec rm -rf {} \;' bindWith:contentsDir).
ec95b496db76 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23463
diff changeset
  3014
        s tab; nextPutLine:('@-find "%1/" -name ".cvsignore" -exec rm {} \;' bindWith:contentsDir).
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3015
    ].
21501
1f27e0a15ac5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21262
diff changeset
  3016
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  3017
    "Modified: / 24-02-2017 / 16:37:22 / cg"
23472
bdd9c7db361f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23469
diff changeset
  3018
    "Modified: / 26-10-2018 / 03:54:54 / Claus Gittinger"
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3019
!
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3020
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3021
osxPkgDistributionScript
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3022
    "unfinished.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3023
     generate (OSX unix) copy commands to generate a directory holding the pkg prototype image directory.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3024
     This is used to generate a macOS deployable pkg containing libraries or non-GUI programs"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3025
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3026
    |packageID product|
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3027
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3028
    product := self productName.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3029
    packageID := self package copyReplaceAny:':/' with:$..
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3030
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3031
    ^  '
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3032
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3033
<installer-gui-script minSpecVersion="1">
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3034
    <title>',product,'</title>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3035
    <options customize="never"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3036
    <allowed-os-versions>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3037
        <os-version min="10.5"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3038
    </allowed-os-versions>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3039
    <installation-check script="InstallationCheck();"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3040
    <script><!![CDATA[
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3041
function InstallationCheck () {
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3042
    if (system.compareVersions(system.version.ProductVersion, "10.5") < 0) {
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3043
        my.result.message = "This package is meant to be installed on Mac OS X 10.5 or newer.";
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3044
        my.result.type = ''Fatal'';
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3045
        return false;
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3046
    }
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3047
    if (system.files.fileExistsAtPath(''/opt/local/bin/',product,''')) {
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3048
        my.result.message = "',product,' is already installed.";
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3049
        my.result.type = ''Warn'';
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3050
        return false;
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3051
    }
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3052
    return true;
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3053
}
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3054
    ]]></script>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3055
    <readme mime-type="text/html" file="ReadMe.html"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3056
    <welcome mime-type="text/html" file="Welcome.html"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3057
    <choices-outline>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3058
        <line choice="default">
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3059
            <line choice="',packageID,'"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3060
        </line>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3061
    </choices-outline>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3062
    <choice id="default"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3063
    <choice id="',packageID,'" visible="false">
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3064
        <pkg-ref id="',packageID,'"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3065
    </choice>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3066
    <pkg-ref id="',packageID,'" version="0.2.3.3.0.0.0.0.0" installKBytes="14236">#MacPorts-2.3.3-component.pkg</pkg-ref>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3067
    <pkg-ref id="',packageID,'">
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3068
        <bundle-version/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3069
    </pkg-ref>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3070
    <product id="',packageID,'"/>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3071
</installer-gui-script>
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3072
'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3073
!
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3074
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3075
osxPkgImageSetupLines
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3076
    "generate (OSX unix) copy commands to generate a directory holding the pkg prototype image directory.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3077
     This is used to generate a macOS deployable pkg containing libraries or non-GUI programs"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3078
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3079
    |product productFile pkgVolume pkgDir 
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3080
     optDir optLocalDir optLocalBinDir|
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3081
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3082
    product := self productName.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3083
    productFile := self productFilename.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3084
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3085
    pkgVolume := productFile,'.pkg'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3086
    pkgDir := productFile,'_pkg'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3087
    optDir := pkgDir,'/opt'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3088
    optLocalDir := optDir,'/local'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3089
    optLocalBinDir := optLocalDir,'/bin'.
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3090
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3091
    ^ String streamContents:[:s |
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3092
        s tab; nextPutLine:('-rm -rf "%1"' bindWith:pkgDir).
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3093
        s tab; nextPutLine:('-mkdir "%1"' bindWith:pkgDir).  
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3094
        s tab; nextPutLine:('-mkdir "%1"' bindWith:optDir). 
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3095
        s tab; nextPutLine:('-mkdir "%1"' bindWith:optLocalDir). 
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3096
        s tab; nextPutLine:('-mkdir "%1"' bindWith:optLocalBinDir). 
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3097
        s tab; nextPutLine:('cp "',self applicationName,'" "',optLocalBinDir,'/"').
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3098
    ].
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3099
!
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3100
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3101
osxSetupRules
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3102
    "this is sliced into the generated Make.proto file"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3103
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3104
    self isGUIApplication ifTrue:[
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3105
        ^ self osxSetupRules_forDMG
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3106
    ].
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3107
    ^ self osxSetupRules_forPKG
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3108
!
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3109
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3110
osxSetupRules_forDMG
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3111
    "this is sliced into the generated Make.proto file"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3112
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3113
    ^ '
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3114
#
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3115
# for mac, a dmg is generated
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3116
# (SETUP_RULE is set to setup_macosx)
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3117
#
23441
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3118
dmg:    setup_macosx
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3119
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3120
clobber::
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3121
        -rm -f "%(PRODUCT_FILENAME).dmg"
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3122
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3123
clean::
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3124
        -rm -rf "%(PRODUCT_FILENAME)_dmg"
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3125
        -rm -f "%(PRODUCT_FILENAME)_cmpr.dmg"
ebb17e2e6e75 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23439
diff changeset
  3126
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3127
setup_macosx:   "%(PRODUCT_FILENAME)_dmg"
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3128
        -rm "%(PRODUCT_FILENAME).dmg" "%(PRODUCT_FILENAME)_cmpr.dmg"
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3129
        hdiutil create -fs HFSX -layout SPUD "%(PRODUCT_FILENAME).dmg" -srcfolder "%(PRODUCT_FILENAME)_dmg" -format UDRW -volname "%(PRODUCT_NAME)" -quiet
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3130
        @-sync
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  3131
        @-sleep 10
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3132
        $(MAKE) dmg_mount_script
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3133
        hdiutil convert "%(PRODUCT_FILENAME).dmg" -format UDZO -imagekey zlib-level=9 -o "%(PRODUCT_FILENAME)_cmpr.dmg"
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3134
        @-rm "%(PRODUCT_FILENAME)".dmg
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3135
        @-mv "%(PRODUCT_FILENAME)"_cmpr.dmg "%(PRODUCT_FILENAME)".dmg
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3136
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3137
app: "%(PRODUCT_FILENAME)_dmg"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3138
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3139
# tell the Finder to resize the window, set the background,
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3140
#  change the icon size, place the icons in the right position, etc.
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3141
dmg_mount_script:
23460
b246dde491c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23451
diff changeset
  3142
        @-sleep 1
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3143
        @-hdiutil detach /Volumes/"%(PRODUCT_NAME)"
23460
b246dde491c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23451
diff changeset
  3144
        @-sleep 1
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3145
        @-hdiutil detach /Volumes/"%(PRODUCT_NAME)"
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3146
        @-sync
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3147
        hdiutil attach -readwrite -noverify "%(PRODUCT_FILENAME).dmg"
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3148
        @-sync
23460
b246dde491c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23451
diff changeset
  3149
        @-sleep 20
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  3150
        @(cat osx/osascript.script | osascript)
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3151
        hdiutil detach /Volumes/"%(PRODUCT_NAME)"
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3152
        @-sync
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  3153
        @-sleep 10
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3154
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3155
"%(PRODUCT_FILENAME)_dmg": $(SUBPROJECT_LIBS) $(REQUIRED_SUPPORT_DIRS) 
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3156
%(OSX_DMG_SETUP)
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3157
'
21550
27b0d0fdb941 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21516
diff changeset
  3158
21572
6acae83d8f46 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 21570
diff changeset
  3159
    "Modified: / 24-02-2017 / 14:30:49 / cg"
23460
b246dde491c8 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23451
diff changeset
  3160
    "Modified: / 24-10-2018 / 18:16:15 / Claus Gittinger"
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3161
!
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3162
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3163
osxSetupRules_forPKG
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3164
    "this is sliced into the generated Make.proto file"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3165
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3166
    ^ '
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3167
#
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3168
# for mac, a pkg is generated
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3169
# (SETUP_RULE is set to setup_macosx)
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3170
#
24054
d4a4ba52405d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 24044
diff changeset
  3171
clobber::
d4a4ba52405d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 24044
diff changeset
  3172
        -rm -f "%(PRODUCT_FILENAME).pkg"
d4a4ba52405d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 24044
diff changeset
  3173
d4a4ba52405d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 24044
diff changeset
  3174
clean::
d4a4ba52405d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 24044
diff changeset
  3175
        -rm -rf "%(PRODUCT_FILENAME)_pkg"
d4a4ba52405d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 24044
diff changeset
  3176
20589
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3177
setup_macosx:   "%(PRODUCT_FILENAME)_pkg"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3178
        -rm "%(PRODUCT_FILENAME).pkg"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3179
        pkgbuild --identifier "%(PRODUCT_ID)" --version "%(PRODUCT_VERSION)" --root %(PRODUCT_FILENAME)_pkg "%(PRODUCT_FILENAME).pkg"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3180
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3181
app: "%(PRODUCT_FILENAME)_pkg"
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3182
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3183
"%(PRODUCT_FILENAME)_pkg": $(SUBPROJECT_LIBS) $(REQUIRED_SUPPORT_DIRS) 
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3184
%(OSX_PKG_SETUP)
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3185
'
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3186
!
fd675c8fdfe9 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 20581
diff changeset
  3187
23430
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3188
osx_osascript
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3189
    "generate (OSX unix) osa script commands to arrange the dmg folder being shown.
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3190
     This is used to generate a macOS deployable dmg"
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3191
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3192
    |packageID product|
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3193
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3194
    product := self productName.
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3195
    packageID := self package copyReplaceAny:':/' with:$..
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3196
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3197
    ^
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3198
'tell application "Finder"
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3199
  tell disk "%(PRODUCT_NAME)"
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3200
        open
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3201
        set current view of container window to icon view
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3202
        set toolbar visible of container window to false
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3203
        set statusbar visible of container window to false
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3204
        set the bounds of container window to {500, 100, 1023, 380}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3205
        set viewOptions to the icon view options of container window
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3206
        set arrangement of viewOptions to not arranged
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3207
        set icon size of viewOptions to 72
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3208
', (self osxDmgBackgroundImageFile notNil 
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3209
        ifTrue:[
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3210
'        set background picture of viewOptions to file ".background:banner.png"
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3211
        set position of item ".background" of container window to {600, 200}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3212
']
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3213
        ifFalse:[''])
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3214
,'        set position of item ".Trashes" of container window to {600, 200}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3215
        set position of item ".fseventsd" of container window to {600, 200}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3216
        set position of item ".DS_Store" of container window to {600, 200}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3217
        set position of item "%(PRODUCT_NAME).app" of container window to {160, 100}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3218
        set position of item "Applications" of container window to {360, 100}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3219
        set the bounds of container window to {500, 100, 1023, 380}
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3220
        close
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3221
        open
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3222
        update without registering applications
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3223
        delay 2
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3224
  end tell
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3225
end tell
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3226
'.
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3227
!
00371f2b70a3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 23411
diff changeset
  3228
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3229
packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3230
    "the template code for the <appname>.nsi file"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3231
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  3232
|docDirPath|
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  3233
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3234
^ 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3235
'; $','Header','$
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3236
; Script generated by ProjectDefinition.
23216
7aefd9bb214d #FEATURE by sr
sr
parents: 23215
diff changeset
  3237
BrandingText "eXept Software AG"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3238
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3239
!!define PRODUCT_NAME "%(PRODUCT_NAME)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3240
!!define PRODUCT_FILENAME "%(PRODUCT_FILENAME)"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3241
!!define PRODUCT_VERSION "%(PRODUCT_VERSION)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3242
!!define PRODUCT_PUBLISHER "%(PRODUCT_PUBLISHER)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3243
!!define PRODUCT_WEB_SITE "%(PRODUCT_WEBSITE)"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3244
!!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
  3245
!!define PRODUCT_UNINST_ROOT_KEY "HKLM"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3246
19538
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  3247
;
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  3248
; SETUP_NAME can come from makefile as either setup or setup64
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  3249
;
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  3250
!!if "${SETUP_NAME}" == ""
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  3251
SETUP_NAME="%(PRODUCT_NAME)Setup"
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  3252
!!endif
bfaa716ce8d5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19537
diff changeset
  3253
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3254
!!define STX_ROOT "%(TOP)\.."
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3255
12984
3dfc4e2f531d changed: #packageName_dot_nsi
Stefan Vogel <sv@exept.de>
parents: 12965
diff changeset
  3256
SetCompressor /solid lzma
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3257
11351
cafc08a328aa Use MUI2
Stefan Vogel <sv@exept.de>
parents: 11211
diff changeset
  3258
!!include "MUI2.nsh"
14383
sr
parents: 14379
diff changeset
  3259
!!include "x64.nsh"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3260
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3261
; MUI Settings
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3262
11351
cafc08a328aa Use MUI2
Stefan Vogel <sv@exept.de>
parents: 11211
diff changeset
  3263
!!define MUI_WELCOMEPAGE_TITLE_3LINES
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3264
!!define MUI_ABORTWARNING
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3265
%(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
  3266
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_ICON "%(APPLICATION_ICON).ico"
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3267
%(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
  3268
%(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
  3269
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3270
; Language Selection Dialog Settings
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3271
!!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3272
!!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3273
!!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3274
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3275
; Welcome page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3276
!!insertmacro MUI_PAGE_WELCOME
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3277
; License page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3278
; !!define MUI_LICENSEPAGE_CHECKBOX
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3279
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3280
',(self hasLicenceToAcceptDuringInstallation 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3281
    ifTrue:['!!insertmacro MUI_PAGE_LICENSE $(license)']
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3282
    ifFalse:['']),'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3283
!!insertmacro MUI_PAGE_COMPONENTS
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3284
; Directory page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3285
!!insertmacro MUI_PAGE_DIRECTORY
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3286
; Instfiles page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3287
!!insertmacro MUI_PAGE_INSTFILES
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3288
; Finish page
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3289
!!insertmacro MUI_PAGE_FINISH
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3290
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3291
; Uninstaller pages
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3292
!!insertmacro MUI_UNPAGE_INSTFILES
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3293
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3294
; Language files
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3295
!!insertmacro MUI_LANGUAGE "English"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3296
!!insertmacro MUI_LANGUAGE "German"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3297
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3298
; MUI end ------
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3299
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  3300
',((self hasLicenceToAcceptDuringInstallation and:[(docDirPath := self docDirPath_win32) notEmptyOrNil])
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3301
    ifTrue:['
10975
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  3302
LicenseLangString license ${LANG_ENGLISH} "' , docDirPath , '\licence_en.txt"
7e889c33b0e0 #docDirPath
Stefan Vogel <sv@exept.de>
parents: 10967
diff changeset
  3303
LicenseLangString license ${LANG_GERMAN}  "' , docDirPath , '\licence_de.txt"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3304
']
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3305
    ifFalse:['']),'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3306
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3307
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3308
VIProductVersion "${PRODUCT_VERSION}.0"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3309
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3310
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3311
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "%(FILE_VERSION)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3312
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3313
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3314
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "%(LEGAL_COPYRIGHT)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3315
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3316
19537
623c2fa4e6f3 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 19504
diff changeset
  3317
OutFile "${SETUP_NAME}.exe"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3318
InstallDir "%(PRODUCT_INSTALLDIR)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3319
ShowInstDetails show
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3320
ShowUnInstDetails show
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3321
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3322
Function .onInit
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3323
  !!insertmacro MUI_LANGDLL_DISPLAY
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3324
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3325
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3326
InstType Full
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3327
InstType Partial
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3328
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3329
Section "Programme" Section1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3330
  SectionIn 1 2
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3331
  SetOutPath "$INSTDIR\bin"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3332
  SetOverwrite ifnewer
10419
0412cefd7206 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10418
diff changeset
  3333
  File %(DELIVERED_EXECUTABLES)
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3334
%(COMMON_FILES_TO_INSTALL)
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3335
%(ADDITIONAL_FILES_TO_INSTALL)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3336
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3337
%(FILE_EXTENSION_DEFINITION_LINES)
14383
sr
parents: 14379
diff changeset
  3338
%(DEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN)
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3339
  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
  3340
  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
  3341
  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
  3342
  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
  3343
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3344
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3345
%(SEMI_IF_NO_DOC_EXISTS)Section "Online-Documentation for %(PRODUCT_NAME)" Section2
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3346
%(SEMI_IF_NO_DOC_EXISTS)  SectionIn 1
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3347
%(SEMI_IF_NO_DOC_EXISTS)  SetOutPath "$INSTDIR\doc"
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3348
%(SEMI_IF_NO_DOC_EXISTS)  SetOverwrite ifnewer
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3349
%(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
  3350
%(SEMI_IF_NO_DOC_EXISTS)SectionEnd
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3351
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3352
;; Section "%(PRODUCT_NAME) Libraries and Demos" Section3
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3353
;;   SectionIn 1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3354
;;   SetOutPath "$INSTDIR\lib"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3355
;;   SetOverwrite ifnewer
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3356
;; ;   File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\examples\*"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3357
;; SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3358
;; 
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3359
;; Section "%(PRODUCT_NAME) Reports and Printing" Section4
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3360
;;   SectionIn 1
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3361
;;   SetOutPath "$INSTDIR\reportGenerator"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3362
;;   SetOverwrite ifnewer
10801
92d1002693ed comment
Stefan Vogel <sv@exept.de>
parents: 10717
diff changeset
  3363
;; ;  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
  3364
;; SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3365
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3366
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3367
%(STX_SOURCES_LINES)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3368
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3369
%(APP_SOURCES_LINES)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3370
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3371
%(ADDITIONAL_SECTIONS)
10547
af59f1ae6f0b preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents: 10509
diff changeset
  3372
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3373
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
  3374
  SetOutPath "$INSTDIR\bin"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3375
  WriteIniStr "$INSTDIR\${PRODUCT_FILENAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3376
  CreateDirectory "$SMPROGRAMS\${PRODUCT_FILENAME}"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3377
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"
10419
0412cefd7206 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10418
diff changeset
  3378
  CreateShortCut "$DESKTOP\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3379
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" "$INSTDIR\${PRODUCT_FILENAME}.url"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3380
  CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" "$INSTDIR\uninst.exe"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3381
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3382
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3383
Section -Post
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3384
  WriteUninstaller "$INSTDIR\uninst.exe"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3385
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3386
  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
  3387
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3388
  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
  3389
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3390
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3391
24044
67625a62dbff #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23855
diff changeset
  3392
LangString appOpen ${LANG_GERMAN}  "Mit %(PRODUCT_NAME) öffnen"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3393
LangString appOpen ${LANG_ENGLISH} "Open with %(PRODUCT_NAME)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3394
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3395
LangString DESC_Section1 ${LANG_ENGLISH} "Program components of %(PRODUCT_NAME)"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3396
LangString DESC_Section1 ${LANG_GERMAN}  "Alle Programmkomponenten von %(PRODUCT_NAME)"
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3397
%(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
  3398
%(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
  3399
;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3400
;; LangString DESC_Section3 ${LANG_GERMAN}  "Bibliotheken und Beispielprojekte"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3401
;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3402
;; LangString DESC_Section4 ${LANG_GERMAN}  "Drucken und Report-Generierung aus Log-Dateien"
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3403
%(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
  3404
%(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
  3405
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_ENGLISH} "Sources of %(PRODUCT_NAME)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3406
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_GERMAN}  "Quellcode von %(PRODUCT_NAME)"
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3407
%(ADDITIONAL_SECTIONS_DESCRIPTIONS)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3408
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3409
!!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3410
  !!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
9985
7d3b7b89929d more definitions
Claus Gittinger <cg@exept.de>
parents: 9982
diff changeset
  3411
%(SEMI_IF_NO_DOC_EXISTS)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
10575
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3412
%(SEMI_IF_NO_STX_SOURCES)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3413
%(SEMI_IF_NO_APP_SOURCES)  !!insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4)
8f6a01901163 *** empty log message ***
fm
parents: 10572
diff changeset
  3414
%(ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3415
!!insertmacro MUI_FUNCTION_DESCRIPTION_END
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3416
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3417
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3418
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3419
Function un.onUninstSuccess
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3420
  HideWindow
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3421
  MessageBox MB_ICONINFORMATION|MB_OK "%(PRODUCT_NAME) wurde erfolgreich deinstalliert"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3422
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3423
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3424
Function un.onInit
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3425
!!insertmacro MUI_UNGETLANGUAGE
24044
67625a62dbff #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 23855
diff changeset
  3426
  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
  3427
  Abort
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3428
FunctionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3429
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3430
Section Uninstall
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3431
  Delete "$INSTDIR\${PRODUCT_FILENAME}.url"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3432
  Delete "$INSTDIR\uninst.exe"
10626
e6ce341ac09b *** empty log message ***
fm
parents: 10575
diff changeset
  3433
%(DIRECTORY_UNINSTALL_LINES)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3434
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3435
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3436
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3437
  Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3438
  Delete "$DESKTOP\%(APPLICATION).lnk"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3439
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3440
  RMDir "$SMPROGRAMS\${PRODUCT_FILENAME}"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3441
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3442
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
10427
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3443
  DeleteRegKey HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1"
4ced2ddca6fb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10425
diff changeset
  3444
%(FILE_EXTENSION_UNDEFINITION_LINES)
14383
sr
parents: 14379
diff changeset
  3445
%(UNDEFINITION_NOCONSOLE_APPLICATION_RUNASADMIN)
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3446
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3447
  SetAutoClose true
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3448
SectionEnd
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3449
'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3450
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3451
     bosch_dapasx_application packageName_dot_nsi
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3452
     bosch_dapasx_application generateFile:'dapasx.nsi'
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3453
    "
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3454
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3455
    "Modified: / 09-08-2006 / 15:10:57 / fm"
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3456
    "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
  3457
    "Modified: / 15-05-2007 / 17:22:37 / cg"
23216
7aefd9bb214d #FEATURE by sr
sr
parents: 23215
diff changeset
  3458
    "Modified: / 18-07-2018 / 15:28:31 / sr"
9963
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3459
!
435a95596a82 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9961
diff changeset
  3460
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3461
packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3462
    "the template code for the <appname>.rc file"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3463
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3464
^ 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3465
'//
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3466
// DO NOT EDIT 
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3467
// automagically generated from the projectDefinition: ',self name,'.
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3468
//
11376
ba75adbf6a62 splash file definition
Claus Gittinger <cg@exept.de>
parents: 11351
diff changeset
  3469
#define IDR_MAINFRAME   128
ba75adbf6a62 splash file definition
Claus Gittinger <cg@exept.de>
parents: 11351
diff changeset
  3470
#define IDR_SPLASH      129
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3471
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  3472
#if (__BORLANDC__)
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3473
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  3474
#endif
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  3475
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3476
#pragma code_page(1252)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3477
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3478
%(ICONDEFINITION_LINE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3479
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3480
VS_VERSION_INFO VERSIONINFO
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3481
  FILEVERSION     %(FILE_VERSION_COMMASEPARATED)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3482
  PRODUCTVERSION  %(PRODUCT_VERSION_COMMASEPARATED)
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  3483
#if (__BORLANDC__)
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3484
  FILEFLAGSMASK   VS_FF_DEBUG | VS_FF_PRERELEASE
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3485
  FILEFLAGS       VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3486
  FILEOS          VOS_NT_WINDOWS32
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3487
  FILETYPE        %(FILETYPE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3488
  FILESUBTYPE     VS_USER_DEFINED
13971
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  3489
#else
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  3490
  FILEFLAGSMASK 0x3fL
26c55a2db128 changed: #packageName_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13957
diff changeset
  3491
#endif
9816
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3492
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3493
BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3494
  BLOCK "StringFileInfo"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3495
  BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3496
    BLOCK "040904E4"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3497
    BEGIN
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3498
      VALUE "CompanyName", "%(COMPANY_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3499
      VALUE "FileDescription", "%(FILE_DESCRIPTION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3500
      VALUE "FileVersion", "%(FILE_VERSION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3501
      VALUE "InternalName", "%(INTERNAL_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3502
%(LEGAL_COPYRIGHT_LINE)
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3503
      VALUE "ProductName", "%(PRODUCT_NAME)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3504
      VALUE "ProductVersion", "%(PRODUCT_VERSION)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3505
      VALUE "ProductDate", "%(PRODUCT_DATE)\0"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3506
    END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3507
  END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3508
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3509
  BLOCK "VarFileInfo"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3510
  BEGIN                               //  Language   |    Translation
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3511
    VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3512
  END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3513
END
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3514
'
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3515
    "
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3516
     stx_libbasic3 packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3517
     stx_libbasic3 generate_packageName_dot_rc
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3518
    "
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3519
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3520
    "Modified: / 09-08-2006 / 15:10:57 / fm"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3521
    "Created: / 30-08-2006 / 18:41:47 / cg"
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3522
!
7a6c28ca9edc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9813
diff changeset
  3523
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  3524
preRequisiteLine_bc_dot_mak
19289
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3525
    "Note: the trailing blank in 'CFLAGS_LOCAL=$(GLOBALDEFINES) '
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3526
     is required!!"
10381
9118d27357a9 make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents: 10379
diff changeset
  3527
    ^
12960
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  3528
'%(FILE_NAME).dll: %(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  3529
        copy %(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll *.*
5d7d08fd4c77 changed:
Claus Gittinger <cg@exept.de>
parents: 12600
diff changeset
  3530
20021
66ff2331e8cf #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19995
diff changeset
  3531
%(MODULE_DIRECTORY)\$(OBJDIR)\%(FILE_NAME).dll: $(FORCE)
66ff2331e8cf #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19995
diff changeset
  3532
        pushd %(MODULE_DIRECTORY) & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3533
'
9900
3e770297c1a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9897
diff changeset
  3534
19959
358ac2af7261 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19956
diff changeset
  3535
    "Modified: / 06-06-2016 / 15:53:51 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3536
!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3537
11378
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3538
preRequisiteLine_make_dot_proto
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3539
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3540
    "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
  3541
     is required!!"
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3542
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3543
    ^
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3544
'%(FILE_NAME).so: %(MODULE_DIRECTORY)/%(FILE_NAME).so
14878
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  3545
        ln -sf %(MODULE_DIRECTORY)/%(FILE_NAME).so .
29a9cc3bb1f3 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14867
diff changeset
  3546
15391
3652287f82e9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15370
diff changeset
  3547
%(MODULE_DIRECTORY)/%(FILE_NAME).so: %(MODULE_DIRECTORY)/makefile $(FORCE)
15602
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3548
        @if [ -f "%(MODULE_DIRECTORY)/.NOSOURCE" ]; then \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3549
            echo "skip make in %(MODULE_DIRECTORY) (no source)"; \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3550
        else \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3551
            cd %(MODULE_DIRECTORY) && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
e93324370989 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15529
diff changeset
  3552
        fi
15391
3652287f82e9 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15370
diff changeset
  3553
15392
cf68e96d7051 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15391
diff changeset
  3554
%(MODULE_DIRECTORY)/makefile: %(MODULE_DIRECTORY)/Make.proto
cf68e96d7051 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15391
diff changeset
  3555
        $(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
  3556
'
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3557
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3558
    "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
  3559
!
bca27db64e92 Correct sort order for libraries in unix Make.proto
Stefan Vogel <sv@exept.de>
parents: 11376
diff changeset
  3560
10308
d5c23a970d7a Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10302
diff changeset
  3561
subProjectLine_bc_dot_mak
19289
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3562
    "Note: the trailing blank in 'CFLAGS_LOCAL=$(GLOBALDEFINES) '
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3563
     is required!!"
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3564
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3565
^'%(LIBRARY_NAME).dll: %(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3566
        copy %(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll *.*
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3567
19962
115ed8ccb8c8 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 19959
diff changeset
  3568
%(PATH_TO_SUB_PROJECT)\$(OBJDIR)\%(LIBRARY_NAME).dll: $(FORCE)
19289
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3569
        pushd %(PATH_TO_SUB_PROJECT) & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3570
'
12965
239e0d0eeca0 usevc/usebc handling
Claus Gittinger <cg@exept.de>
parents: 12960
diff changeset
  3571
19289
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3572
    "Modified: / 03-03-2016 / 21:23:00 / cg"
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3573
!
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3574
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3575
subProjectLine_make_dot_proto
19289
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3576
    "Note: the trailing blank in 'CFLAGS_LOCAL=$(GLOBALDEFINES) '
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3577
     is required!!"
b55681941879 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 18501
diff changeset
  3578
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3579
^'%(LIBRARY_NAME).so: %(PATH_TO_SUB_PROJECT)/%(LIBRARY_NAME).so
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3580
        ln -sf %(PATH_TO_SUB_PROJECT)/%(LIBRARY_NAME).so .
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3581
19962
115ed8ccb8c8 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 19959
diff changeset
  3582
%(PATH_TO_SUB_PROJECT)/%(LIBRARY_NAME).so: %(PATH_TO_SUB_PROJECT)/makefile  $(FORCE)
115ed8ccb8c8 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 19959
diff changeset
  3583
        @if [ -f "%(PATH_TO_SUB_PROJECT)/.NOSOURCE" ]; then \
115ed8ccb8c8 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 19959
diff changeset
  3584
            echo "skip make in %(PATH_TO_SUB_PROJECT) (no source)"; \
115ed8ccb8c8 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 19959
diff changeset
  3585
        else \
115ed8ccb8c8 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 19959
diff changeset
  3586
            cd %(PATH_TO_SUB_PROJECT) && $(MAKE) "CFLAGS_LOCAL=$(GLOBALDEFINES) "; \
115ed8ccb8c8 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 19959
diff changeset
  3587
        fi
15394
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3588
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3589
%(PATH_TO_SUB_PROJECT)/makefile: %(PATH_TO_SUB_PROJECT)/Make.proto
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3590
        $(TOP)/rules/stmkmf --cd %(PATH_TO_SUB_PROJECT)
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3591
'
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3592
!
fb7b579c9eb5 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15393
diff changeset
  3593
10094
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3594
undefineExtenionLine_nsi_for:extension
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3595
    "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
  3596
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3597
^ 
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3598
'  DeleteRegKey HKCR ".',extension,'"'
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3599
f19c19308711 care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents: 10079
diff changeset
  3600
    "Created: / 15-10-2006 / 12:51:00 / cg"
15393
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3601
!
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3602
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3603
undefineExtensionLine_nsi_for:extension
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3604
    "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
  3605
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3606
^ 
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3607
'  DeleteRegKey HKCR ".',extension,'"'
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3608
2b8365dcfce0 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 15392
diff changeset
  3609
    "Created: / 15-10-2006 / 12:51:00 / cg"
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3610
! !
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3611
9813
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3612
!ApplicationDefinition class methodsFor:'queries'!
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3613
17243
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3614
definitionClassOfApplicationBundle
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3615
    "Return the applicationDefinition of the applicationBundle or nil. 
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3616
     This is the applicationDefinition of the package which gets actually deployed.
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3617
     This information is currently used for automatic check of language translations.
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3618
     Here, ssume that I am the bundle.
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3619
     Redefine in other applications if that is not true."
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3620
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3621
    ^ self
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3622
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3623
    "
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3624
     exept_expecco definitionClassOfApplicationBundle    
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3625
     exept_expecco_application definitionClassOfApplicationBundle    
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3626
     exept_expecco_plugin_swt definitionClassOfApplicationBundle    
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3627
    "
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3628
!
a511fae6b628 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 17187
diff changeset
  3629
19442
d0c08f806495 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19289
diff changeset
  3630
isAbstract
d0c08f806495 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19289
diff changeset
  3631
    ^ self == ApplicationDefinition
d0c08f806495 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19289
diff changeset
  3632
!
d0c08f806495 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19289
diff changeset
  3633
12332
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3634
projectType
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3635
    ^ self isGUIApplication
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3636
        ifTrue:[ GUIApplicationType  ]
8967d7e3d44c added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12311
diff changeset
  3637
        ifFalse:[ NonGUIApplicationType ]
12995
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3638
!
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3639
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3640
shouldBeLoadedInitially:aProjectID
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3641
    "answer true, if a class should not be loaded initially,
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3642
     but explicitly later by the application"
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3643
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3644
    |initiallyLoaded|
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3645
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3646
    initiallyLoaded := self initiallyLoadedPreRequisites.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3647
    initiallyLoaded isNil ifTrue:[
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3648
        ^ true.
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3649
    ].
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3650
Stefan Vogel <sv@exept.de>
parents: 12984
diff changeset
  3651
    ^ initiallyLoaded includes:aProjectID
9813
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3652
! !
50b986cea25b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9798
diff changeset
  3653
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3654
!ApplicationDefinition class methodsFor:'sanity checks'!
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3655
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3656
validateDescription
13807
733feed2f27c comment
Claus Gittinger <cg@exept.de>
parents: 13739
diff changeset
  3657
    "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
  3658
     called before checking in build support files"
733feed2f27c comment
Claus Gittinger <cg@exept.de>
parents: 13739
diff changeset
  3659
9958
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3660
    super validateDescription.
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3661
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3662
    #(
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3663
        startupClassName
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3664
"/        startupSelector
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3665
    ) do:[:sel |
12306
7c83818f8b01 changed:
Claus Gittinger <cg@exept.de>
parents: 12203
diff changeset
  3666
        (self theMetaclass includesSelector:sel) ifFalse:[
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3667
            Dialog 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3668
                warn:('The %1-method is missing from the description %2!!' 
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3669
                        bindWith:sel allBold
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3670
                        with:self name allBold).
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3671
            AbortSignal raise.
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3672
        ].
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3673
        (Error catch:[ self perform:sel ]) ifTrue:[
14371
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3674
            (Dialog 
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3675
                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
  3676
                        bindWith:sel allBold
14371
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3677
                        with:self name allBold) withCRs) ifFalse:[
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3678
                AbortSignal raise.
c7288e118fd5 changed: #validateDescription
Claus Gittinger <cg@exept.de>
parents: 14367
diff changeset
  3679
            ].
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3680
        ].
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3681
    ].
9958
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3682
38b4e2871c56 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9943
diff changeset
  3683
    "Modified: / 19-09-2006 / 20:17:38 / cg"
13807
733feed2f27c comment
Claus Gittinger <cg@exept.de>
parents: 13739
diff changeset
  3684
    "Modified (comment): / 31-10-2011 / 10:58:03 / cg"
9725
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3685
! !
6aafcea3655c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9687
diff changeset
  3686
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3687
!ApplicationDefinition class methodsFor:'testing'!
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3688
9669
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  3689
isApplicationDefinition
14979
e517ad4c5b23 class: ApplicationDefinition
Stefan Vogel <sv@exept.de>
parents: 14976
diff changeset
  3690
    ^ self isAbstract not
9669
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  3691
f0b5ad4fb4a8 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9623
diff changeset
  3692
    "Created: / 23-08-2006 / 15:17:38 / cg"
23052
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3693
!
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3694
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3695
isConsoleApplication
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3696
    "Used with WIN32 only (i.e. affects bc.mak).
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3697
     Return true, if this is a console application. 
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3698
     Console applications have stdout and stderr and open up a command-window
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3699
     when started. Only console applications can interact with the user in the
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3700
     command line window.
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3701
     By default, GUI apps are compiled as non-console apps.
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3702
     If you need both (as in expecco), redefine this as true AND in addition redefine 
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3703
     makeConsoleApplication to return true."
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3704
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3705
    ^ self isGUIApplication not
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3706
817250995bca #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 22389
diff changeset
  3707
    "Created: / 20-09-2006 / 11:29:24 / cg"
9587
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3708
! !
172d616e9d8d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9578
diff changeset
  3709
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3710
!ApplicationDefinition class methodsFor:'documentation'!
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3711
13731
7878d9e511ab changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13730
diff changeset
  3712
version
18501
1e7170250a51 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 18429
diff changeset
  3713
    ^ '$Header$'
13731
7878d9e511ab changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13730
diff changeset
  3714
!
7878d9e511ab changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13730
diff changeset
  3715
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  3716
version_CVS
18501
1e7170250a51 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 18429
diff changeset
  3717
    ^ '$Header$'
12203
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  3718
!
485c127a702e changed:
Claus Gittinger <cg@exept.de>
parents: 12040
diff changeset
  3719
13417
23b97fa0be76 Jan's changes
vrany
parents: 13349
diff changeset
  3720
version_SVN
15228
bd8559a81c36 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 15218
diff changeset
  3721
    ^ '$ Id: ApplicationDefinition.st 10645 2011-06-09 15:28:45Z vranyj1  $'
9532
c897f2e72672 initial checkin
fm
parents:
diff changeset
  3722
! !
14645
29bcfa6db618 class: ApplicationDefinition
Claus Gittinger <cg@exept.de>
parents: 14541
diff changeset
  3723