LibraryDefinition.st
changeset 10305 9ddd9fa56303
parent 10301 538da2da9faf
child 10318 bef855ddbb59
equal deleted inserted replaced
10304:faf1eff80f7a 10305:9ddd9fa56303
    78     ^ #( 
    78     ^ #( 
    79           #('Make.proto'        #'generate_make_dot_proto')
    79           #('Make.proto'        #'generate_make_dot_proto')
    80           #('Make.spec'         #'generate_make_dot_spec')
    80           #('Make.spec'         #'generate_make_dot_spec')
    81           #('libInit.cc'        #'generate_libInit_dot_cc')
    81           #('libInit.cc'        #'generate_libInit_dot_cc')
    82           #('bc.def'            #'generate_bc_dot_def')
    82           #('bc.def'            #'generate_bc_dot_def')
    83           #('nt.mak'            #'generate_nt_dot_mak')
    83           #('bc.mak'            #'generate_bc_dot_mak')
    84 "
       
    85           #('nt.def'            #'generate_nt_dot_def')
       
    86 "
       
    87           #('abbrev.stc'        #'generate_abbrev_dot_stc') 
    84           #('abbrev.stc'        #'generate_abbrev_dot_stc') 
    88           #('bmake.bat'         #'generate_bmake_dot_mak') 
    85           #('bmake.bat'         #'generate_bmake_dot_mak') 
    89      ) , (Array
    86      ) , (Array
    90             with:
    87             with:
    91                 (Array 
    88                 (Array 
   140 '
   137 '
   141 
   138 
   142     "Created: / 08-08-2006 / 12:26:58 / fm"
   139     "Created: / 08-08-2006 / 12:26:58 / fm"
   143     "Modified: / 08-08-2006 / 19:32:27 / fm"
   140     "Modified: / 08-08-2006 / 19:32:27 / fm"
   144     "Modified: / 18-08-2006 / 17:13:45 / cg"
   141     "Modified: / 18-08-2006 / 17:13:45 / cg"
       
   142 !
       
   143 
       
   144 bc_dot_mak
       
   145 
       
   146 ^
       
   147 '# $','Header','$
       
   148 #
       
   149 # DO NOT EDIT 
       
   150 # automagically generated from the projectDefinition: ',self name,'.
       
   151 #
       
   152 # Warning: once you modify this file, do not rerun
       
   153 # stmkmp or projectDefinition-build again - otherwise, your changes are lost.
       
   154 #
       
   155 # This file contains make rules for the win32 platform (using borland-bcc).
       
   156 # It shares common definitions with the unix-make in Make.spec.
       
   157 # The nt.mak supports the following targets:
       
   158 #    bmake         - compile all st-files to a classLib (dll)
       
   159 #    bmake clean   - clean all temp files
       
   160 #    bmake clobber - clean all
       
   161 #
       
   162 #
       
   163 TOP=%(TOP)
       
   164 INCLUDE_TOP=$(TOP)\..
       
   165 
       
   166 !!INCLUDE $(TOP)\rules\stdHeader_bc
       
   167 
       
   168 !!INCLUDE Make.spec
       
   169 
       
   170 LIBNAME=%(LIBRARY_NAME)
       
   171 RESFILES=%(RESFILENAME)
       
   172 LOCALINCLUDES=%(LOCAL_INCLUDES)
       
   173 
       
   174 STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME)
       
   175 LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES)
       
   176 
       
   177 %(ADDITIONAL_DEFINITIONS)
       
   178 
       
   179 OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
       
   180 
       
   181 ALL::  %(ADDITIONAL_TARGETS) $(LIBDIR)\$(LIBNAME).lib $(BINDIR)\$(LIBNAME).dll
       
   182 
       
   183 !!INCLUDE $(TOP)\rules\stdRules_bc
       
   184 
       
   185 %(ADDITIONAL_RULES)
       
   186 
       
   187 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
       
   188 %(DEPENDENCIES)
       
   189 # ENDMAKEDEPEND --- do not remove this line
       
   190 '
       
   191 
       
   192     "Created: / 09-08-2006 / 11:44:20 / fm"
       
   193     "Modified: / 09-08-2006 / 19:59:32 / fm"
       
   194     "Modified: / 14-09-2006 / 15:48:18 / cg"
   145 !
   195 !
   146 
   196 
   147 extensionLine_libInit_dot_cc
   197 extensionLine_libInit_dot_cc
   148 
   198 
   149 ^'_%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);'
   199 ^'_%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);'
   363     "Created: / 08-08-2006 / 20:45:36 / fm"
   413     "Created: / 08-08-2006 / 20:45:36 / fm"
   364     "Modified: / 09-08-2006 / 16:50:23 / fm"
   414     "Modified: / 09-08-2006 / 16:50:23 / fm"
   365     "Modified: / 14-09-2006 / 15:48:02 / cg"
   415     "Modified: / 14-09-2006 / 15:48:02 / cg"
   366 !
   416 !
   367 
   417 
   368 nt_dot_def
   418 vc_dot_def
   369 
   419 
   370 ^
   420 ^
   371 'LIBRARY        %(LIBRARY_NAME)
   421 'LIBRARY        %(LIBRARY_NAME)
   372 DESCRIPTION     %(DESCRIPTION)
   422 DESCRIPTION     %(DESCRIPTION)
   373 VERSION         %(VERSION_NUMBER)
   423 VERSION         %(VERSION_NUMBER)
   379 EXPORTS 
   429 EXPORTS 
   380     _%(LIBRARY_NAME)_Init      @1
   430     _%(LIBRARY_NAME)_Init      @1
   381 IMPORTS'
   431 IMPORTS'
   382 
   432 
   383     "Modified: / 08-08-2006 / 19:33:14 / fm"
   433     "Modified: / 08-08-2006 / 19:33:14 / fm"
   384 !
       
   385 
       
   386 nt_dot_mak
       
   387 
       
   388 ^
       
   389 '# $','Header','$
       
   390 #
       
   391 # DO NOT EDIT 
       
   392 # automagically generated from the projectDefinition: ',self name,'.
       
   393 #
       
   394 # Warning: once you modify this file, do not rerun
       
   395 # stmkmp or projectDefinition-build again - otherwise, your changes are lost.
       
   396 #
       
   397 # This file contains make rules for the win32 platform (using borland-bcc).
       
   398 # It shares common definitions with the unix-make in Make.spec.
       
   399 # The nt.mak supports the following targets:
       
   400 #    bmake         - compile all st-files to a classLib (dll)
       
   401 #    bmake clean   - clean all temp files
       
   402 #    bmake clobber - clean all
       
   403 #
       
   404 #
       
   405 TOP=%(TOP)
       
   406 INCLUDE_TOP=$(TOP)\..
       
   407 
       
   408 !!INCLUDE $(TOP)\rules\stdHeader_nt
       
   409 
       
   410 !!INCLUDE Make.spec
       
   411 
       
   412 LIBNAME=%(LIBRARY_NAME)
       
   413 RESFILES=%(RESFILENAME)
       
   414 LOCALINCLUDES=%(LOCAL_INCLUDES)
       
   415 
       
   416 STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME)
       
   417 LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES)
       
   418 
       
   419 %(ADDITIONAL_DEFINITIONS)
       
   420 
       
   421 OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
       
   422 
       
   423 ALL::  %(ADDITIONAL_TARGETS) $(LIBDIR)\$(LIBNAME).lib $(BINDIR)\$(LIBNAME).dll
       
   424 
       
   425 !!INCLUDE $(TOP)\rules\stdRules_nt
       
   426 
       
   427 %(ADDITIONAL_RULES)
       
   428 
       
   429 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
       
   430 %(DEPENDENCIES)
       
   431 # ENDMAKEDEPEND --- do not remove this line
       
   432 '
       
   433 
       
   434     "Created: / 09-08-2006 / 11:44:20 / fm"
       
   435     "Modified: / 09-08-2006 / 19:59:32 / fm"
       
   436     "Modified: / 14-09-2006 / 15:48:18 / cg"
       
   437 ! !
   434 ! !
   438 
   435 
   439 !LibraryDefinition class methodsFor:'mappings'!
   436 !LibraryDefinition class methodsFor:'mappings'!
   440 
   437 
   441 bc_dot_def_mappings
   438 bc_dot_def_mappings
   446     "Created: / 09-08-2006 / 11:17:59 / fm"
   443     "Created: / 09-08-2006 / 11:17:59 / fm"
   447     "Modified: / 16-08-2006 / 18:19:25 / User"
   444     "Modified: / 16-08-2006 / 18:19:25 / User"
   448     "Modified: / 14-09-2006 / 18:56:11 / cg"
   445     "Modified: / 14-09-2006 / 18:56:11 / cg"
   449 !
   446 !
   450 
   447 
   451 extensionLine_libInit_dot_cc_mappings
   448 bc_dot_mak_mappings
   452 
       
   453 ^Dictionary new                                               
       
   454     at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) );
       
   455     yourself
       
   456 
       
   457     "Created: / 09-08-2006 / 11:19:59 / fm"
       
   458     "Modified: / 14-09-2006 / 18:56:26 / cg"
       
   459 !
       
   460 
       
   461 libInit_dot_cc_mappings
       
   462 
       
   463 ^Dictionary new
       
   464     at: 'LIBRARY_NAME' put: (self libraryName);
       
   465     at: 'PACKAGE' put: (self package);
       
   466     at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc);
       
   467     at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc);
       
   468 
       
   469     yourself
       
   470 
       
   471     "Created: / 09-08-2006 / 11:20:24 / fm"
       
   472     "Modified: / 16-08-2006 / 18:19:03 / User"
       
   473     "Modified: / 14-09-2006 / 18:56:42 / cg"
       
   474 !
       
   475 
       
   476 nt_dot_def_mappings
       
   477 
       
   478 ^Dictionary new
       
   479     at: 'LIBRARY_NAME' put: (self libraryName);
       
   480     at: 'DESCRIPTION' put: (self description asString storeString);
       
   481     at: 'VERSION_NUMBER' put: (self versionNumber);
       
   482     yourself
       
   483 
       
   484     "Created: / 09-08-2006 / 11:21:21 / fm"
       
   485     "Modified: / 14-09-2006 / 18:58:07 / cg"
       
   486 !
       
   487 
       
   488 nt_dot_mak_mappings
       
   489     |d resFileName|
   449     |d resFileName|
   490 
   450 
   491     resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'.
   451     resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'.
   492 
   452 
   493     d := super nt_dot_mak_mappings.
   453     d := super bc_dot_mak_mappings.
   494     d
   454     d
   495         at: 'LIBRARY_NAME' put: ( self libraryName );
   455         at: 'LIBRARY_NAME' put: ( self libraryName );
   496         at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32);
   456         at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32);
   497         at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag);
   457         at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag);
   498         at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg);
   458         at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg);
   499         at: 'RESFILENAME' put: resFileName;
   459         at: 'RESFILENAME' put: resFileName;
   500         at: 'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_nt_dot_mak);
   460         at: 'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_bc_dot_mak);
   501         at: 'ADDITIONAL_RULES' put: (self additionalRules_nt_dot_mak);
   461         at: 'ADDITIONAL_RULES' put: (self additionalRules_bc_dot_mak);
   502         at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_nt_dot_mak);
   462         at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_bc_dot_mak);
   503         at: 'DEPENDENCIES' put: (self generateDependencies_win32);
   463         at: 'DEPENDENCIES' put: (self generateDependencies_win32);
   504         yourself.
   464         yourself.
   505     ^ d.
   465     ^ d.
   506 
   466 
   507     "Created: / 09-08-2006 / 11:44:36 / fm"
   467     "Created: / 09-08-2006 / 11:44:36 / fm"
   508     "Modified: / 09-08-2006 / 20:00:01 / fm"
   468     "Modified: / 09-08-2006 / 20:00:01 / fm"
   509     "Modified: / 14-09-2006 / 18:58:15 / cg"
   469     "Modified: / 14-09-2006 / 18:58:15 / cg"
       
   470 !
       
   471 
       
   472 extensionLine_libInit_dot_cc_mappings
       
   473 
       
   474 ^Dictionary new                                               
       
   475     at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) );
       
   476     yourself
       
   477 
       
   478     "Created: / 09-08-2006 / 11:19:59 / fm"
       
   479     "Modified: / 14-09-2006 / 18:56:26 / cg"
       
   480 !
       
   481 
       
   482 libInit_dot_cc_mappings
       
   483 
       
   484 ^Dictionary new
       
   485     at: 'LIBRARY_NAME' put: (self libraryName);
       
   486     at: 'PACKAGE' put: (self package);
       
   487     at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc);
       
   488     at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc);
       
   489 
       
   490     yourself
       
   491 
       
   492     "Created: / 09-08-2006 / 11:20:24 / fm"
       
   493     "Modified: / 16-08-2006 / 18:19:03 / User"
       
   494     "Modified: / 14-09-2006 / 18:56:42 / cg"
       
   495 !
       
   496 
       
   497 vc_dot_def_mappings
       
   498 
       
   499 ^Dictionary new
       
   500     at: 'LIBRARY_NAME' put: (self libraryName);
       
   501     at: 'DESCRIPTION' put: (self description asString storeString);
       
   502     at: 'VERSION_NUMBER' put: (self versionNumber);
       
   503     yourself
       
   504 
       
   505     "Created: / 09-08-2006 / 11:21:21 / fm"
       
   506     "Modified: / 14-09-2006 / 18:58:07 / cg"
   510 ! !
   507 ! !
   511 
   508 
   512 !LibraryDefinition class methodsFor:'mappings support'!
   509 !LibraryDefinition class methodsFor:'mappings support'!
   513 
   510 
   514 commonSymbolsFlag
   511 commonSymbolsFlag
   626 ! !
   623 ! !
   627 
   624 
   628 !LibraryDefinition class methodsFor:'documentation'!
   625 !LibraryDefinition class methodsFor:'documentation'!
   629 
   626 
   630 version
   627 version
   631     ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.73 2007-01-10 13:16:23 stefan Exp $'
   628     ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.74 2007-01-11 18:06:00 stefan Exp $'
   632 ! !
   629 ! !