LibraryDefinition.st
author Claus Gittinger <cg@exept.de>
Tue, 09 Jul 2019 20:55:17 +0200
changeset 24417 03b083548da2
parent 23856 abae14e3afa9
permissions -rw-r--r--
#REFACTORING by exept class: Smalltalk class changed: #recursiveInstallAutoloadedClassesFrom:rememberIn:maxLevels:noAutoload:packageTop:showSplashInLevels: Transcript showCR:(... bindWith:...) -> Transcript showCR:... with:...
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23856
abae14e3afa9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 23458
diff changeset
     1
"{ Encoding: utf8 }"
abae14e3afa9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 23458
diff changeset
     2
9526
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
     3
"
14910
ed91559bbe8a class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14883
diff changeset
     4
 COPYRIGHT (c) 2006-2013 by eXept Software AG
ed91559bbe8a class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14883
diff changeset
     5
              All Rights Reserved
9526
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
     6
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
     7
 This software is furnished under a license and may be used
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
     8
 only in accordance with the terms of that license and with the
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    10
 be provided or otherwise made available to, or used by, any
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    11
 other person.  No title to or ownership of the software is
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    12
 hereby transferred.
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    13
"
9671
cb20763db715 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9666
diff changeset
    14
"{ Package: 'stx:libbasic' }"
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
    15
18502
52c60aea0795 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17242
diff changeset
    16
"{ NameSpace: Smalltalk }"
52c60aea0795 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17242
diff changeset
    17
9568
7d41a61ebd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9558
diff changeset
    18
ProjectDefinition subclass:#LibraryDefinition
9616
7bd19460f53f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9613
diff changeset
    19
	instanceVariableNames:''
7bd19460f53f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9613
diff changeset
    20
	classVariableNames:''
7bd19460f53f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9613
diff changeset
    21
	poolDictionaries:''
7bd19460f53f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9613
diff changeset
    22
	category:'System-Support-Projects'
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
    23
!
b17358de5730 initial checkin
fm
parents:
diff changeset
    24
9568
7d41a61ebd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9558
diff changeset
    25
!LibraryDefinition class methodsFor:'documentation'!
9526
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    26
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    27
copyright
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    28
"
14910
ed91559bbe8a class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14883
diff changeset
    29
 COPYRIGHT (c) 2006-2013 by eXept Software AG
ed91559bbe8a class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14883
diff changeset
    30
              All Rights Reserved
9526
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    31
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    32
 This software is furnished under a license and may be used
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    33
 only in accordance with the terms of that license and with the
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    35
 be provided or otherwise made available to, or used by, any
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    36
 other person.  No title to or ownership of the software is
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    37
 hereby transferred.
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    38
"
6760ab786028 changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents: 9517
diff changeset
    39
! !
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
    40
11577
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    41
!LibraryDefinition class methodsFor:'description - compilation'!
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    42
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    43
primaryTarget
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    44
    "the primary make target in Make.proto/bc.mak"
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    45
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    46
    ^ 'classLibRule'
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    47
! !
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
    48
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    49
!LibraryDefinition class methodsFor:'description - project information'!
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    50
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    51
description
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    52
    "Returns a description string which will appear in nt.def / bc.def"
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    53
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    54
    self module = 'stx' ifTrue:[
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
    55
	^ 'Smalltalk/X Class library'
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    56
    ].
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    57
9586
eb87399baea3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9582
diff changeset
    58
    ^ 'Class Library'
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    59
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    60
    "Created: / 17-08-2006 / 20:52:16 / cg"
9586
eb87399baea3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9582
diff changeset
    61
    "Modified: / 18-08-2006 / 16:15:53 / cg"
9847
102c149868ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9832
diff changeset
    62
!
102c149868ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9832
diff changeset
    63
102c149868ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9832
diff changeset
    64
fileDescription
10417
0eef8e824503 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10377
diff changeset
    65
    "Return a description string which will appear in nt.def / bc.def and the rc-file"
9847
102c149868ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9832
diff changeset
    66
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
    67
    ^ self description , ' (LIB)'
9847
102c149868ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9832
diff changeset
    68
102c149868ad *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9832
diff changeset
    69
    "Created: / 14-09-2006 / 10:55:23 / cg"
13179
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    70
!
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    71
21685
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    72
productName
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    73
    "Returns a product name which will appear in <lib>.rc.
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    74
     Under win32, this is placed into the dll's file-info.
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    75
     This method is usually redefined in a concrete application definition"
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    76
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    77
    ^ super productName ? self name.
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    78
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    79
    "Created: / 03-04-2017 / 19:08:44 / stefan"
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    80
!
0f9d82ec04db #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 19997
diff changeset
    81
13179
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    82
productType
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    83
    "Returns the product type for autopackage"
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    84
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    85
    ^ 'Library'
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    86
f7307b5736ca added: #productType
Claus Gittinger <cg@exept.de>
parents: 12772
diff changeset
    87
    "Created: / 21-12-2010 / 09:28:59 / cg"
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    88
! !
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    89
9568
7d41a61ebd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9558
diff changeset
    90
!LibraryDefinition class methodsFor:'file generation'!
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
    91
9853
1ccdc89f1b4f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9851
diff changeset
    92
basicFileNamesToGenerate
22388
a7392e0e7e23 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21927
diff changeset
    93
    "answer a dictionary (filename -> generator method) with all the build-support files, 
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
    94
     that have to be generated for this package"
10865
59a7977261af Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10805
diff changeset
    95
59a7977261af Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10805
diff changeset
    96
    |dict|
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
    97
10865
59a7977261af Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10805
diff changeset
    98
    dict := super basicFileNamesToGenerate.
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
    99
    dict at:'libInit.cc' put:#'generate_libInit_dot_cc'.
10865
59a7977261af Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents: 10805
diff changeset
   100
    ^ dict.
22388
a7392e0e7e23 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21927
diff changeset
   101
a7392e0e7e23 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 21927
diff changeset
   102
    "Modified (comment): / 04-12-2017 / 17:40:09 / cg"
9582
8753d32d0969 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9576
diff changeset
   103
!
8753d32d0969 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9576
diff changeset
   104
8753d32d0969 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9576
diff changeset
   105
generate_libInit_dot_cc
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   106
    ^ self replaceMappings: self libInit_dot_cc_mappings
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   107
            in: self libInit_dot_cc
9582
8753d32d0969 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9576
diff changeset
   108
9960
13b44d7b8f54 also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9957
diff changeset
   109
    "
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   110
     stx_libbasic2 generate_libInit_dot_cc
9960
13b44d7b8f54 also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9957
diff changeset
   111
     bosch_dapasx_datenbasis generate_libInit_dot_cc
13b44d7b8f54 also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9957
diff changeset
   112
     bosch_dapasx_application generate_libInit_dot_cc
13b44d7b8f54 also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9957
diff changeset
   113
    "
9582
8753d32d0969 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9576
diff changeset
   114
8753d32d0969 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9576
diff changeset
   115
    "Created: / 08-08-2006 / 12:47:16 / fm"
8753d32d0969 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9576
diff changeset
   116
    "Modified: / 09-08-2006 / 11:30:52 / fm"
9960
13b44d7b8f54 also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents: 9957
diff changeset
   117
    "Modified: / 19-09-2006 / 22:41:40 / cg"
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   118
! !
b17358de5730 initial checkin
fm
parents:
diff changeset
   119
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   120
!LibraryDefinition class methodsFor:'file mappings'!
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   121
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   122
bc_dot_mak_mappings
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   123
    |d resFileName|
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   124
19997
e925ec41a00c #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 19980
diff changeset
   125
    resFileName := self resourceFilename. "/ (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.$(RES)'.
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   126
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   127
    d := super bc_dot_mak_mappings.
14946
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   128
    ^ d
14858
a34396484b3c class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14807
diff changeset
   129
        at: 'LIBRARY_NAME' put: ( self libraryName );
a34396484b3c class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14807
diff changeset
   130
        at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag);
a34396484b3c class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14807
diff changeset
   131
        at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg);
a34396484b3c class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14807
diff changeset
   132
        at: 'RESFILENAME' put: resFileName;
a34396484b3c class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14807
diff changeset
   133
        at: 'DEPENDENCIES' put: (self generateDependencies_win32);
14946
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   134
        at: 'MAKE_PREREQUISITES' put: (self generateRequiredMakePrerequisites_bc_dot_mak ? '');
14858
a34396484b3c class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14807
diff changeset
   135
        yourself.
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   136
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   137
    "Created: / 09-08-2006 / 11:44:36 / fm"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   138
    "Modified: / 09-08-2006 / 20:00:01 / fm"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   139
    "Modified: / 14-09-2006 / 18:58:15 / cg"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   140
!
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   141
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   142
extensionLine_libInit_dot_cc_mappings
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   143
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   144
    ^ Dictionary new
18502
52c60aea0795 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17242
diff changeset
   145
        at: 'LIBRARY_NAME' put: ( self st2c:(ProjectDefinition projectDefinitionClassNameForDefinitionOf:self package) );
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   146
        yourself
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   147
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   148
    "Created: / 09-08-2006 / 11:19:59 / fm"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   149
    "Modified: / 14-09-2006 / 18:56:26 / cg"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   150
!
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   151
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   152
libInit_dot_cc_mappings
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   153
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   154
    ^ Dictionary new
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   155
        at: 'LIBRARY_NAME' put: (self libraryName);
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   156
        at: 'PACKAGE' put: (self package);
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   157
        at: 'EXTERN_DECLARATIONS' put: (self generateExternalDeclarationLines_libInit_dot_cc);
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   158
        at: 'DEFINITION_CLASSES' put: (self generateDefinitionClassLine_libInit_dot_cc);
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   159
        at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc);
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   160
        at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc);
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   161
        yourself
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   162
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   163
    "
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   164
     stx_libbasic libInit_dot_cc_mappings
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   165
    "
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   166
    
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   167
    "Created: / 09-08-2006 / 11:20:24 / fm"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   168
    "Modified: / 16-08-2006 / 18:19:03 / User"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   169
    "Modified: / 14-09-2006 / 18:56:42 / cg"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   170
!
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   171
14946
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   172
make_dot_proto_mappings
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   173
    |d|
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   174
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   175
    d := super make_dot_proto_mappings.
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   176
    ^ d
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   177
        at: 'MAKE_PREREQUISITES' put: (self generateRequiredMakePrerequisites_make_dot_proto);
825742866297 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14910
diff changeset
   178
        yourself.
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   179
! !
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   180
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   181
!LibraryDefinition class methodsFor:'file mappings support'!
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   182
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   183
commonSymbolsFlag
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   184
    "some libraries are compiled with COMMONSYMBOLS -
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   185
     This saves a lot of space in the generated dll/so files;
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   186
     However, it also requires the librun to be rebuilt, whenever one of
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   187
     the commonSymbols-libs changes.
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   188
     Therefore, NEVER do this for end-user or application libraries;
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   189
     ONLY do it for a subset of the predefined, eXept-provided standard stx libraries"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   190
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   191
    (
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   192
	#(
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   193
	    'stx:libbasic'        'stx:libview'         'stx:libtool'
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   194
	    'stx:libbasic2'       'stx:libview2'        'stx:libtool2'
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   195
	    'stx:libbasic3'       'stx:libwidg'         'stx:libhtml'
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   196
	    'stx:libcomp'         'stx:libwidg2'        'stx:libui'
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   197
	    'stx:libboss'         'stx:libdb'
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   198
	)
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   199
    includes:self package) ifTrue:[
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   200
	^ '$(COMMONSYMBOLS)'
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   201
    ].
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   202
    ^ ''
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   203
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   204
    "Created: / 18-08-2006 / 13:01:52 / cg"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   205
    "Modified: / 23-08-2006 / 09:48:11 / cg"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   206
!
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   207
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   208
generateExtensionLine_libInit_dot_cc
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   209
    |mappings|
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   210
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   211
    ^ self hasExtensionMethods
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   212
        ifFalse:['']
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   213
        ifTrue:[
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   214
            mappings := self extensionLine_libInit_dot_cc_mappings.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   215
            self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.]
12365
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   216
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   217
    "
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   218
     DapasXProject generateExtensionLine_libInit_dot_cc
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   219
     DapasX_Datenbasis generateExtensionLine_libInit_dot_cc
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   220
    "
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   221
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   222
    "Created: / 09-08-2006 / 11:23:34 / fm"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   223
    "Modified: / 14-09-2006 / 14:19:59 / cg"
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   224
! !
dff86cea9ade category of:6 methods
Claus Gittinger <cg@exept.de>
parents: 12333
diff changeset
   225
9568
7d41a61ebd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9558
diff changeset
   226
!LibraryDefinition class methodsFor:'file templates'!
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   227
b17358de5730 initial checkin
fm
parents:
diff changeset
   228
bc_dot_def
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   229
    "the template code for the bc.def file"
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   230
12772
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   231
"/^
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   232
"/'LIBRARY         %(LIBRARY_NAME)
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   233
"/DESCRIPTION     %(DESCRIPTION)
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   234
"/CODE            PRELOAD MOVEABLE DISCARDABLE
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   235
"/SEGMENTS
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   236
"/    INITCODE    PRELOAD DISCARDABLE
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   237
"/EXPORTS
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   238
"/    __%(LIBRARY_NAME)_Init              @1
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   239
"/    __%(LIBRARY_NAME)_InitDefinition    @2
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   240
"/'
731875678c5b changed:
Claus Gittinger <cg@exept.de>
parents: 12770
diff changeset
   241
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   242
^
9608
9dbec800d20e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9606
diff changeset
   243
'LIBRARY         %(LIBRARY_NAME)
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   244
DESCRIPTION     %(DESCRIPTION)
b17358de5730 initial checkin
fm
parents:
diff changeset
   245
CODE            PRELOAD MOVEABLE DISCARDABLE
b17358de5730 initial checkin
fm
parents:
diff changeset
   246
SEGMENTS
b17358de5730 initial checkin
fm
parents:
diff changeset
   247
    INITCODE    PRELOAD DISCARDABLE
b17358de5730 initial checkin
fm
parents:
diff changeset
   248
EXPORTS
12770
520a17d353eb add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents: 12365
diff changeset
   249
    __%(LIBRARY_NAME)_Init              @1
9504
b89c84c60e86 *** empty log message ***
fm
parents: 9503
diff changeset
   250
'
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   251
b17358de5730 initial checkin
fm
parents:
diff changeset
   252
    "Created: / 08-08-2006 / 12:26:58 / fm"
b17358de5730 initial checkin
fm
parents:
diff changeset
   253
    "Modified: / 08-08-2006 / 19:32:27 / fm"
9590
4b6cfa035ecb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9586
diff changeset
   254
    "Modified: / 18-08-2006 / 17:13:45 / cg"
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   255
!
b17358de5730 initial checkin
fm
parents:
diff changeset
   256
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   257
bc_dot_mak
10318
bef855ddbb59 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10305
diff changeset
   258
    "answer a template for the bc.mak makefile.
bef855ddbb59 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10305
diff changeset
   259
     Any variable definition %(Variable) will be later replaced by the mapping.
bef855ddbb59 bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents: 10305
diff changeset
   260
     $% characters have to be duplicated"
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   261
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   262
^
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   263
'# $','Header','$
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   264
#
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   265
# DO NOT EDIT
14246
77308d477687 changed:
Claus Gittinger <cg@exept.de>
parents: 13984
diff changeset
   266
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'.
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   267
#
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   268
# Warning: once you modify this file, do not rerun
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   269
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   270
#
13951
f4528d257651 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13788
diff changeset
   271
# Notice, that the name bc.mak is historical (from times, when only borland c was supported).
f4528d257651 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13788
diff changeset
   272
# This file contains make rules for the win32 platform using either borland-bcc or visual-c.
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   273
# It shares common definitions with the unix-make in Make.spec.
13951
f4528d257651 use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents: 13788
diff changeset
   274
# The bc.mak supports the following targets:
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   275
#    bmake         - compile all st-files to a classLib (dll)
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   276
#    bmake clean   - clean all temp files
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   277
#    bmake clobber - clean all
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   278
#
13729
af86d0e06956 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13685
diff changeset
   279
# Historic Note:
14433
7d03959d0127 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 14246
diff changeset
   280
#  this used to contain only rules to make with borland
13729
af86d0e06956 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13685
diff changeset
   281
#    (called via bmake, by "make.exe -f bc.mak")
13784
64c593e788bd changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13783
diff changeset
   282
#  this has changed; it is now also possible to build using microsoft visual c
13729
af86d0e06956 changed: #bc_dot_mak
Claus Gittinger <cg@exept.de>
parents: 13685
diff changeset
   283
#    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   284
#
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   285
TOP=%(TOP)
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   286
INCLUDE_TOP=$(TOP)\..
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   287
11941
56b21fa6c358 base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents: 11687
diff changeset
   288
%(ADDITIONAL_BASE_ADDRESS_DEFINITION)
56b21fa6c358 base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents: 11687
diff changeset
   289
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   290
!!INCLUDE $(TOP)\rules\stdHeader_bc
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   291
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   292
!!INCLUDE Make.spec
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   293
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   294
LIBNAME=%(LIBRARY_NAME)
17039
6059852be475 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 16194
diff changeset
   295
MODULE_PATH=%(MODULE_PATH)
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   296
RESFILES=%(RESFILENAME)
10536
d1da7d71bcf5 Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents: 10417
diff changeset
   297
d1da7d71bcf5 Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents: 10417
diff changeset
   298
%(ADDITIONAL_DEFINITIONS)
d1da7d71bcf5 Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents: 10417
diff changeset
   299
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   300
LOCALINCLUDES=%(LOCAL_INCLUDES)
10980
6b9e1da6aaba Fix LOCALDEFINES
Stefan Vogel <sv@exept.de>
parents: 10865
diff changeset
   301
LOCALDEFINES=%(LOCAL_DEFINES)
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   302
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   303
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME)
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   304
LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES)
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   306
OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   307
11577
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
   308
ALL:: %(ADDITIONAL_TARGETS) %(PRIMARY_TARGET)
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
   309
12152
9d03dd3552a0 changed: classLibRule to include OUTDIR.
Claus Gittinger <cg@exept.de>
parents: 12095
diff changeset
   310
classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   311
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   312
!!INCLUDE $(TOP)\rules\stdRules_bc
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   313
14879
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   314
# build all mandatory prerequisite packages (containing superclasses) for this package
11155
c816b5f0f90b prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents: 10980
diff changeset
   315
prereq:
c816b5f0f90b prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents: 10980
diff changeset
   316
%(MAKE_PREREQUISITES)
c816b5f0f90b prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents: 10980
diff changeset
   317
14879
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   318
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   319
%(ADDITIONAL_RULES)
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   320
13685
069f722252d9 generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13287
diff changeset
   321
%(ADDITIONAL_HEADERRULES)
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   322
21927
f82381b50ee2 #BUGFIX by sr
sr
parents: 21685
diff changeset
   323
test: $(TOP)\goodies\builder\reports\
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   324
        pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   325
        $(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   326
        
14807
5bd606db09d7 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14785
diff changeset
   327
clean::
19980
84e038500822 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 19657
diff changeset
   328
        -del *.$(CSUFFIX)
14807
5bd606db09d7 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14785
diff changeset
   329
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   330
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   331
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   332
%(DEPENDENCIES)
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   333
# ENDMAKEDEPEND --- do not remove this line
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   334
%(ADDITIONAL_RULES_HG)'
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   335
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   336
    "Created: / 09-08-2006 / 11:44:20 / fm"
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   337
    "Modified: / 09-08-2006 / 19:59:32 / fm"
14246
77308d477687 changed:
Claus Gittinger <cg@exept.de>
parents: 13984
diff changeset
   338
    "Modified: / 26-07-2012 / 00:57:20 / cg"
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   339
    "Modified: / 28-11-2012 / 10:18:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10305
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   340
!
9ddd9fa56303 Rename nt.mak to bc.mak
Stefan Vogel <sv@exept.de>
parents: 10301
diff changeset
   341
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   342
extensionLine_libInit_dot_cc
b17358de5730 initial checkin
fm
parents:
diff changeset
   343
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   344
    ^ '    _%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);'
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   345
b17358de5730 initial checkin
fm
parents:
diff changeset
   346
    "Created: / 08-08-2006 / 15:48:56 / fm"
b17358de5730 initial checkin
fm
parents:
diff changeset
   347
    "Modified: / 08-08-2006 / 19:32:33 / fm"
b17358de5730 initial checkin
fm
parents:
diff changeset
   348
!
b17358de5730 initial checkin
fm
parents:
diff changeset
   349
b17358de5730 initial checkin
fm
parents:
diff changeset
   350
libInit_dot_cc
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   351
    "the template code for the libInit.cc file"
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   352
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   353
^
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   354
'/*
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   355
 * $','Header','$
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   356
 *
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   357
 * DO NOT EDIT
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   358
 * automagically generated from the projectDefinition: ',self name,'.
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   359
 */
b17358de5730 initial checkin
fm
parents:
diff changeset
   360
#define __INDIRECTVMINITCALLS__
10377
590d9b057e53 Remove garbage chararcters
Stefan Vogel <sv@exept.de>
parents: 10335
diff changeset
   361
#include <stc.h>
10332
5fe4d84d78fe Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents: 10318
diff changeset
   362
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   363
#ifdef WIN32
b17358de5730 initial checkin
fm
parents:
diff changeset
   364
# pragma codeseg INITCODE "INITCODE"
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   365
#endif
10332
5fe4d84d78fe Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents: 10318
diff changeset
   366
5fe4d84d78fe Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents: 10318
diff changeset
   367
#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
5fe4d84d78fe Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents: 10318
diff changeset
   368
DLL_EXPORT void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECTION;
14785
78f07495ae73 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14433
diff changeset
   369
DLL_EXPORT void _%(LIBRARY_NAME)_InitDefinition() INIT_TEXT_SECTION;
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   370
#endif
10332
5fe4d84d78fe Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents: 10318
diff changeset
   371
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   372
%(EXTERN_DECLARATIONS)
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   373
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   374
void _%(LIBRARY_NAME)_InitDefinition(int pass, struct __vmData__ *__pRT__, OBJ snd)
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   375
{
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   376
  __BEGIN_PACKAGE2__("%(LIBRARY_NAME)__DFN", _%(LIBRARY_NAME)_InitDefinition, "%(PACKAGE)");
14785
78f07495ae73 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14433
diff changeset
   377
%(DEFINITION_CLASSES)
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   378
  __END_PACKAGE__();
14785
78f07495ae73 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14433
diff changeset
   379
}
12770
520a17d353eb add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents: 12365
diff changeset
   380
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   381
void _%(LIBRARY_NAME)_Init(int pass, struct __vmData__ *__pRT__, OBJ snd)
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   382
{
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   383
  __BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)");
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   384
%(CLASSES)
b17358de5730 initial checkin
fm
parents:
diff changeset
   385
%(EXTENSION)
19308
f96c89d0689a #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 19206
diff changeset
   386
  __END_PACKAGE__();
9902
74fab44fab6e Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents: 9899
diff changeset
   387
}
74fab44fab6e Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents: 9899
diff changeset
   388
'
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   389
b17358de5730 initial checkin
fm
parents:
diff changeset
   390
    "Created: / 08-08-2006 / 12:40:45 / fm"
b17358de5730 initial checkin
fm
parents:
diff changeset
   391
    "Modified: / 08-08-2006 / 19:33:01 / fm"
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   392
    "Modified: / 18-08-2006 / 12:57:02 / cg"
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   393
!
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   394
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   395
make_dot_proto
b17358de5730 initial checkin
fm
parents:
diff changeset
   396
12024
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   397
^
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   398
'# $','Header','$
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   399
#
12024
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   400
# DO NOT EDIT
14246
77308d477687 changed:
Claus Gittinger <cg@exept.de>
parents: 13984
diff changeset
   401
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'.
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   402
#
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   403
# Warning: once you modify this file, do not rerun
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   404
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   405
#
b17358de5730 initial checkin
fm
parents:
diff changeset
   406
# The Makefile as generated by this Make.proto supports the following targets:
b17358de5730 initial checkin
fm
parents:
diff changeset
   407
#    make         - compile all st-files to a classLib
b17358de5730 initial checkin
fm
parents:
diff changeset
   408
#    make clean   - clean all temp files
b17358de5730 initial checkin
fm
parents:
diff changeset
   409
#    make clobber - clean all
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   410
#
23856
abae14e3afa9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 23458
diff changeset
   411
#    export MAKE_ARGS=-j4 ; make
abae14e3afa9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 23458
diff changeset
   412
#
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   413
# This file contains definitions for Unix based platforms.
9851
da6c3e17f89d dependencies
Claus Gittinger <cg@exept.de>
parents: 9847
diff changeset
   414
# It shares common definitions with the win32-make in Make.spec.
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   415
b17358de5730 initial checkin
fm
parents:
diff changeset
   416
#
b17358de5730 initial checkin
fm
parents:
diff changeset
   417
# position (of this package) in directory hierarchy:
b17358de5730 initial checkin
fm
parents:
diff changeset
   418
# (must point to ST/X top directory, for tools and includes)
b17358de5730 initial checkin
fm
parents:
diff changeset
   419
TOP=%(TOP)
9879
6ee07bb4f9e2 local headers
Claus Gittinger <cg@exept.de>
parents: 9853
diff changeset
   420
INCLUDE_TOP=$(TOP)/..
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   421
b17358de5730 initial checkin
fm
parents:
diff changeset
   422
# subdirectories where targets are to be made:
b17358de5730 initial checkin
fm
parents:
diff changeset
   423
SUBDIRS=%(SUBDIRECTORIES)
b17358de5730 initial checkin
fm
parents:
diff changeset
   424
b17358de5730 initial checkin
fm
parents:
diff changeset
   425
b17358de5730 initial checkin
fm
parents:
diff changeset
   426
# subdirectories where Makefiles are to be made:
b17358de5730 initial checkin
fm
parents:
diff changeset
   427
# (only define if different from SUBDIRS)
b17358de5730 initial checkin
fm
parents:
diff changeset
   428
# ALLSUBDIRS=
b17358de5730 initial checkin
fm
parents:
diff changeset
   429
11155
c816b5f0f90b prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents: 10980
diff changeset
   430
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   431
12024
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   432
# if your embedded C code requires any system includes,
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   433
# add the path(es) here:,
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   434
# ********** OPTIONAL: MODIFY the next lines ***
b17358de5730 initial checkin
fm
parents:
diff changeset
   435
# LOCALINCLUDES=-Ifoo -Ibar
b17358de5730 initial checkin
fm
parents:
diff changeset
   436
LOCALINCLUDES=%(LOCAL_INCLUDES)
b17358de5730 initial checkin
fm
parents:
diff changeset
   437
b17358de5730 initial checkin
fm
parents:
diff changeset
   438
12024
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   439
# if you need any additional defines for embedded C code,
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   440
# add them here:,
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   441
# ********** OPTIONAL: MODIFY the next lines ***
b17358de5730 initial checkin
fm
parents:
diff changeset
   442
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG
b17358de5730 initial checkin
fm
parents:
diff changeset
   443
LOCALDEFINES=%(LOCAL_DEFINES)
b17358de5730 initial checkin
fm
parents:
diff changeset
   444
9818
34d323af35ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9812
diff changeset
   445
LIBNAME=%(LIBRARY_NAME)
9613
b61c0a447008 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9612
diff changeset
   446
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME)
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   447
b17358de5730 initial checkin
fm
parents:
diff changeset
   448
b17358de5730 initial checkin
fm
parents:
diff changeset
   449
# ********** OPTIONAL: MODIFY the next line ***
b17358de5730 initial checkin
fm
parents:
diff changeset
   450
# additional C-libraries that should be pre-linked with the class-objects
9734
cbd8cfd24c3a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9723
diff changeset
   451
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES)
9971
57890631d67a Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents: 9960
diff changeset
   452
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES)
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   453
b17358de5730 initial checkin
fm
parents:
diff changeset
   454
b17358de5730 initial checkin
fm
parents:
diff changeset
   455
# ********** OPTIONAL: MODIFY the next line ***
b17358de5730 initial checkin
fm
parents:
diff changeset
   456
# additional C targets or libraries should be added below
b17358de5730 initial checkin
fm
parents:
diff changeset
   457
LOCAL_EXTRA_TARGETS=
b17358de5730 initial checkin
fm
parents:
diff changeset
   458
9606
229eb8b1cfd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9604
diff changeset
   459
OBJS= $(COMMON_OBJS) $(UNIX_OBJS)
229eb8b1cfd5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9604
diff changeset
   460
9626
91e467416a76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9622
diff changeset
   461
%(ADDITIONAL_DEFINITIONS)
91e467416a76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9622
diff changeset
   462
11577
d9ad27e7ca5e Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents: 11550
diff changeset
   463
all:: preMake %(PRIMARY_TARGET) postMake
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   464
12024
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   465
pre_objs:: %(ADDITIONAL_TARGETS) %(ADDITIONAL_TARGETS_SVN)
9626
91e467416a76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9622
diff changeset
   466
91e467416a76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9622
diff changeset
   467
%(ADDITIONAL_RULES)
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   468
12024
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   469
%(ADDITIONAL_RULES_SVN)
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   470
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   471
%(ADDITIONAL_RULES_HG)
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   472
13685
069f722252d9 generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13287
diff changeset
   473
%(ADDITIONAL_HEADERRULES)
069f722252d9 generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents: 13287
diff changeset
   474
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   475
# run default testsuite for this package
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   476
test: $(TOP)/goodies/builder/reports
16194
92e1f555fb2a Fixed target test after changing Makefile to Makefile.init
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15949
diff changeset
   477
        $(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init
15949
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   478
        $(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE)
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   479
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   480
c6b76de17000 merged in jv's changes
Claus Gittinger <cg@exept.de>
parents: 14980
diff changeset
   481
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   482
# add more install actions here
b17358de5730 initial checkin
fm
parents:
diff changeset
   483
install::
b17358de5730 initial checkin
fm
parents:
diff changeset
   484
b17358de5730 initial checkin
fm
parents:
diff changeset
   485
# add more install actions for aux-files (resources) here
b17358de5730 initial checkin
fm
parents:
diff changeset
   486
installAux::
b17358de5730 initial checkin
fm
parents:
diff changeset
   487
b17358de5730 initial checkin
fm
parents:
diff changeset
   488
# add more preMake actions here
b17358de5730 initial checkin
fm
parents:
diff changeset
   489
preMake::
b17358de5730 initial checkin
fm
parents:
diff changeset
   490
b17358de5730 initial checkin
fm
parents:
diff changeset
   491
# add more postMake actions here
b17358de5730 initial checkin
fm
parents:
diff changeset
   492
postMake:: cleanjunk
b17358de5730 initial checkin
fm
parents:
diff changeset
   493
14879
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   494
# build all mandatory prerequisite packages (containing superclasses) for this package
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   495
prereq:
11155
c816b5f0f90b prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents: 10980
diff changeset
   496
%(MAKE_PREREQUISITES)
c816b5f0f90b prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents: 10980
diff changeset
   497
14879
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   498
# build all packages containing referenced classes for this package
17231
Claus Gittinger <cg@exept.de>
parents: 17039
diff changeset
   499
# they are not needed to compile the package (but later, to load it)
14879
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   500
references:
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   501
%(MAKE_REFERENCES)
3839afabb9f9 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14858
diff changeset
   502
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   503
cleanjunk::
13788
4a5f3341c8da changed: #make_dot_proto
Claus Gittinger <cg@exept.de>
parents: 13784
diff changeset
   504
%(TAB)-rm -f *.s *.s2
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   505
b17358de5730 initial checkin
fm
parents:
diff changeset
   506
clean::
23458
4f874be4beb2 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 23122
diff changeset
   507
%(TAB)-rm -f *.$(O) *.$(H)
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   508
10805
92df6c9281f9 Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents: 10536
diff changeset
   509
clobber:: clean
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   510
%(TAB)-rm -f *.so *.dll
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   511
b17358de5730 initial checkin
fm
parents:
diff changeset
   512
',
b17358de5730 initial checkin
fm
parents:
diff changeset
   513
"
b17358de5730 initial checkin
fm
parents:
diff changeset
   514
$(INSTALLBASE)::
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   515
%(TAB)@test -d $@ || mkdir $@
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   516
b17358de5730 initial checkin
fm
parents:
diff changeset
   517
$(INSTALLBASE)/packages:: $(INSTALLBASE)
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   518
%(TAB)@test -d $@ || mkdir $@
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   519
b17358de5730 initial checkin
fm
parents:
diff changeset
   520
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   521
%(TAB)@test -d $@ || mkdir $@
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   522
b17358de5730 initial checkin
fm
parents:
diff changeset
   523
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE)
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   524
%(TAB)@test -d $@ || mkdir $@
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   525
b17358de5730 initial checkin
fm
parents:
diff changeset
   526
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   527
%(TAB)@test -d $@ || mkdir $@
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   528
b17358de5730 initial checkin
fm
parents:
diff changeset
   529
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE)
9576
9ff741fe7271 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9568
diff changeset
   530
%(TAB)@test -d $@ || mkdir $@
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   531
"
b17358de5730 initial checkin
fm
parents:
diff changeset
   532
'
b17358de5730 initial checkin
fm
parents:
diff changeset
   533
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
9851
da6c3e17f89d dependencies
Claus Gittinger <cg@exept.de>
parents: 9847
diff changeset
   534
%(DEPENDENCIES)
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   535
# ENDMAKEDEPEND --- do not remove this line
b17358de5730 initial checkin
fm
parents:
diff changeset
   536
b17358de5730 initial checkin
fm
parents:
diff changeset
   537
'
b17358de5730 initial checkin
fm
parents:
diff changeset
   538
b17358de5730 initial checkin
fm
parents:
diff changeset
   539
    "Created: / 08-08-2006 / 20:45:36 / fm"
b17358de5730 initial checkin
fm
parents:
diff changeset
   540
    "Modified: / 09-08-2006 / 16:50:23 / fm"
12024
00b232843e78 Preps for SVN stuff
Claus Gittinger <cg@exept.de>
parents: 11941
diff changeset
   541
    "Modified: / 24-06-2009 / 21:39:29 / Jan Vrany <vranyj1@fel.cvut.cz>"
14246
77308d477687 changed:
Claus Gittinger <cg@exept.de>
parents: 13984
diff changeset
   542
    "Modified: / 26-07-2012 / 00:57:29 / cg"
16194
92e1f555fb2a Fixed target test after changing Makefile to Makefile.init
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 15949
diff changeset
   543
    "Modified: / 03-03-2014 / 12:17:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
23856
abae14e3afa9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 23458
diff changeset
   544
    "Modified: / 08-03-2019 / 12:16:31 / Claus Gittinger"
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   545
! !
b17358de5730 initial checkin
fm
parents:
diff changeset
   546
12087
285d0beccee2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12024
diff changeset
   547
11550
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   548
!LibraryDefinition class methodsFor:'obsolete'!
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   549
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   550
lib_dot_rc
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   551
    <resource: #obsolete>
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   552
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   553
^
11550
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   554
'/*------------------------------------------------------------------------
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   555
 * $','Header','$
11550
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   556
 *
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   557
 * DO NOT EDIT
11550
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   558
 * automagically generated from the projectDefinition: ',self name,'.
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   559
 *------------------------------------------------------------------------*/
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   560
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   561
// #if (__BORLANDC__ < 0x0550)
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   562
// #include <ver.h>
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   563
// #endif
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   564
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   565
VS_VERSION_INFO VERSIONINFO
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   566
  FILEVERSION     %(FILEVERSION)
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   567
  PRODUCTVERSION  %(PRODUCTVERSION)
13984
91b15932608f changed: #lib_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   568
#if (__BORLANDC__)
11550
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   569
  FILEFLAGSMASK   VS_FF_DEBUG | VS_FF_PRERELEASE
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   570
  FILEFLAGS       VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   571
  FILEOS          VOS_NT_WINDOWS32
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   572
  FILETYPE        %(FILETYPE)
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   573
  FILESUBTYPE     VS_USER_DEFINED
13984
91b15932608f changed: #lib_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   574
#endif
11550
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   575
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   576
BEGIN
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   577
  BLOCK "StringFileInfo"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   578
  BEGIN
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   579
    BLOCK "040904E4"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   580
    BEGIN
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   581
      VALUE "CompanyName", %(COMPANYNAME)
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   582
      VALUE "FileDescription", "Smalltalk/X Additional Developer Basic Classes Library\0"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   583
      VALUE "FileVersion", "5.2.8.1\0"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   584
      VALUE "InternalName", "libbasic3\0"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   585
      VALUE "LegalCopyright", "Copyright eXept Software AG 1998-2006\0"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   586
      VALUE "ProductName", "Smalltalk/X\0"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   587
      VALUE "ProductVersion", "5.2.8.1\0"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   588
    END
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   589
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   590
  END
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   591
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   592
  BLOCK "VarFileInfo"
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   593
  BEGIN                               //  Language   |    Translation
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   594
    VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   595
  END
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   596
END
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   597
'
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   598
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   599
    "Created: / 17-08-2006 / 19:37:50 / cg"
13984
91b15932608f changed: #lib_dot_rc
Claus Gittinger <cg@exept.de>
parents: 13951
diff changeset
   600
    "Modified: / 24-01-2012 / 18:35:45 / cg"
11550
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   601
! !
eea8c88e8de7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 11155
diff changeset
   602
9812
ff093d59cd37 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9810
diff changeset
   603
!LibraryDefinition class methodsFor:'queries'!
ff093d59cd37 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9810
diff changeset
   604
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   605
definitionClassOfApplicationBundle
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   606
    "Return the applicationDefinition of the applicationBundle or nil. 
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   607
     This is the applicationDefinition of the package which gets actually deployed.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   608
     For example, for all stx libraries, this will be stx_projects_smalltalk.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   609
     For expecco, this would be exept_expecco_application.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   610
     The algorithm here follows the parent hierarchy (not the class hierarchy) of the package name.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   611
     Some classes may explicitly redefine this (if the folder structure is not hierarchical).
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   612
     This information is currently used for automatic check of language translations.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   613
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   614
     Notice: libraries which are used by more than one project, should only return the one
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   615
     which is their 'natural' bundle - usually defined by the position in the package hierarchy.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   616
     This is a little experimental - may change."
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   617
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   618
    |libPackageID parentPackageID parentDefinitionClass|
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   619
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   620
    libPackageID := self package asPackageId.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   621
    [
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   622
        parentPackageID := libPackageID parentPackage.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   623
        parentPackageID isNil ifTrue:[^ nil].
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   624
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   625
        parentDefinitionClass := parentPackageID projectDefinitionClass.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   626
        parentDefinitionClass notNil ifTrue:[
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   627
            ^ parentDefinitionClass definitionClassOfApplicationBundle
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   628
        ].
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   629
        libPackageID := parentPackageID
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   630
    ] loop.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   631
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   632
    "
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   633
     exept_expecco definitionClassOfApplicationBundle
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   634
    "
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   635
!
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   636
19443
ef2a05a59a0a #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19308
diff changeset
   637
isAbstract
ef2a05a59a0a #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19308
diff changeset
   638
    ^ self == LibraryDefinition
ef2a05a59a0a #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19308
diff changeset
   639
!
ef2a05a59a0a #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 19308
diff changeset
   640
12333
736cae5edb2a added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12310
diff changeset
   641
projectType
736cae5edb2a added: #projectType
Claus Gittinger <cg@exept.de>
parents: 12310
diff changeset
   642
    ^ LibraryType
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   643
!
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   644
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   645
supportedLanguages
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   646
    "Returns a list of languages that (should be / are) supported by this application or library.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   647
     Currently this is only used by lint, to verify that the corresponding languages are 
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   648
     present in the resource files."
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   649
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   650
    |app|
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   651
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   652
    (app := self definitionClassOfApplicationBundle) notNil ifTrue:[
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   653
        ^ app supportedLanguages
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   654
    ].
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   655
    ^ super supportedLanguages.
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   656
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   657
    "
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   658
     exept_expecco definitionClassOfApplicationBundle
19657
acf6eeca8f67 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 19443
diff changeset
   659
     stx_libtool definitionClassOfApplicationBundle
17242
03455ae3b8d0 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17231
diff changeset
   660
    "
9812
ff093d59cd37 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9810
diff changeset
   661
! !
ff093d59cd37 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9810
diff changeset
   662
9568
7d41a61ebd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9558
diff changeset
   663
!LibraryDefinition class methodsFor:'sanity checks'!
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   664
b17358de5730 initial checkin
fm
parents:
diff changeset
   665
searchForInconsistencies
b17358de5730 initial checkin
fm
parents:
diff changeset
   666
    self searchForNeverCompiledSuperclasses.
b17358de5730 initial checkin
fm
parents:
diff changeset
   667
b17358de5730 initial checkin
fm
parents:
diff changeset
   668
"
b17358de5730 initial checkin
fm
parents:
diff changeset
   669
    self searchForInconsistencies
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   670
    DapasX_Datenbasis searchForInconsistencies
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   671
"
b17358de5730 initial checkin
fm
parents:
diff changeset
   672
b17358de5730 initial checkin
fm
parents:
diff changeset
   673
    "Created: / 09-08-2006 / 16:30:46 / fm"
b17358de5730 initial checkin
fm
parents:
diff changeset
   674
!
b17358de5730 initial checkin
fm
parents:
diff changeset
   675
b17358de5730 initial checkin
fm
parents:
diff changeset
   676
searchForNeverCompiledSuperclasses
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   677
      self compiled_classesDo:[:includedClass |
12214
96d417c20fb8 Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents: 12152
diff changeset
   678
            includedClass allSuperclassesDo:[:eachSuperClass |
96d417c20fb8 Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents: 12152
diff changeset
   679
                eachSuperClass package == PackageId noProjectID ifTrue:[
96d417c20fb8 Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents: 12152
diff changeset
   680
                    self inconsistency:'uncompiled superclass: ' , eachSuperClass name
96d417c20fb8 Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents: 12152
diff changeset
   681
                ].
96d417c20fb8 Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents: 12152
diff changeset
   682
            ]
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   683
      ].
b17358de5730 initial checkin
fm
parents:
diff changeset
   684
b17358de5730 initial checkin
fm
parents:
diff changeset
   685
"
b17358de5730 initial checkin
fm
parents:
diff changeset
   686
    self searchForNeverCompiledSuperclasses
12095
b1e69cf67010 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12087
diff changeset
   687
    DapasX_Datenbasis searchForNeverCompiledSuperclasses
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   688
"
b17358de5730 initial checkin
fm
parents:
diff changeset
   689
b17358de5730 initial checkin
fm
parents:
diff changeset
   690
    "Created: / 09-08-2006 / 16:31:54 / fm"
b17358de5730 initial checkin
fm
parents:
diff changeset
   691
! !
b17358de5730 initial checkin
fm
parents:
diff changeset
   692
9568
7d41a61ebd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9558
diff changeset
   693
!LibraryDefinition class methodsFor:'testing'!
9558
510ca1ebce30 code cleanup
Claus Gittinger <cg@exept.de>
parents: 9547
diff changeset
   694
9666
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   695
isLibraryDefinition
14980
7debf39501f8 class: LibraryDefinition
Stefan Vogel <sv@exept.de>
parents: 14946
diff changeset
   696
    ^ self isAbstract not
9666
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   697
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   698
    "
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   699
     stx_libboss isLibraryDefinition
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   700
     ProjectDefinition isLibraryDefinition
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   701
     LibraryDefinition isLibraryDefinition
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   702
    "
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   703
cdcff7e1794f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9633
diff changeset
   704
    "Created: / 23-08-2006 / 15:17:50 / cg"
9558
510ca1ebce30 code cleanup
Claus Gittinger <cg@exept.de>
parents: 9547
diff changeset
   705
! !
510ca1ebce30 code cleanup
Claus Gittinger <cg@exept.de>
parents: 9547
diff changeset
   706
9568
7d41a61ebd34 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 9558
diff changeset
   707
!LibraryDefinition class methodsFor:'documentation'!
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   708
b17358de5730 initial checkin
fm
parents:
diff changeset
   709
version
18502
52c60aea0795 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17242
diff changeset
   710
    ^ '$Header$'
12087
285d0beccee2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12024
diff changeset
   711
!
285d0beccee2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12024
diff changeset
   712
285d0beccee2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 12024
diff changeset
   713
version_CVS
18502
52c60aea0795 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 17242
diff changeset
   714
    ^ '$Header$'
9493
b17358de5730 initial checkin
fm
parents:
diff changeset
   715
! !
14785
78f07495ae73 class: LibraryDefinition
Claus Gittinger <cg@exept.de>
parents: 14433
diff changeset
   716