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