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