Changeset 761


Ignore:
Timestamp:
Apr 8, 2008, 7:30:23 PM (16 years ago)
Author:
garnier
Message:

modif depuis que mon mac a plante : mise a jour des moc en mieux

Location:
trunk/geant4/config
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/config/G4VIS_USE.gmk

    r593 r761  
    6060  G4VIS_USE_OPENGL = 1
    6161  CPPFLAGS += -DG4VIS_USE_OPENGLQT
     62  VISLIBS += -lG4OpenGL_moc
    6263  INC_QT   = 1
    6364endif
  • trunk/geant4/config/History

    r758 r761  
    1 $Id: History,v 1.317 2008/03/19 10:24:00 lgarnier Exp $
     1$Id: History,v 1.319 2008/04/04 10:35:41 gcosmo Exp $
    22-------------------------------------------------------------------
    33
     
    1717     ----------------------------------------------------------
    1818
    19 19th March 2008, Laurent Garnier
    20  - common.gmk : Changes for moc generation. When compiling G4UI driver
    21    AFTER compiling G4UI QT driver, it does not remove the moc generated files
    22    and try to compile theme again and failed. Corrected.
    23 
    24 18th March 2008, Laurent Garnier
    25  - common.gmk : Minor changes when compiling Qt
     193rd April 2008  Gabriele Cosmo (config-V09-01-03)
     20- Linux-icc.gmk: updated setup to make use of icc-10.1 and ifort-10.1;
     21  changed compilation option "-mp" to more performant "-fp_model precise".
     22
     232nd April 2008  Gunter Folger (config-V09-01-02)
     24- Replaced gets() by safer fgets() in liblist.c.
     25  (this tag does not include latest changes in interactivity.gmk)
     26
     2718th March 2008  Laurent Garnier
     28- interactivity.gmk: moved Qt setup before X11.
    2629
    273021st February 2008  Gabriele Cosmo (config-V09-01-01)
  • trunk/geant4/config/common.gmk

    r758 r761  
    1 # $Id: common.gmk,v 1.50 2008/03/19 10:55:47 lgarnier Exp $
     1# $Id: common.gmk,v 1.51 2008/04/04 10:35:20 gcosmo Exp $
    22# ----------------------------------------------------------------
    33# Common part of GNUmakefile for libraries.  John Allison, 5/7/95.
     
    55# Libraries are created according to G4SYSTEM. G.Cosmo, 11/6/96.
    66# Introduced G4LIBDIR and G4TMPDIR. G.Cosmo, 23/6/98.
    7 # Introduced Qt moc rule, L.Garnier 15/2/08.
    87
    98ifndef G4LIBDIR
     
    1211G4TMPDIR := $(G4TMP)/$(G4SYSTEM)/$(name)
    1312
    14 moc_inc = $(shell grep -l "Q_OBJECT" include/*.hh )
    15 moc_files := $(patsubst include/%.hh, src/%_moc.cc, $(moc_inc))
    16 
    17 
    18 ifeq ($(G4INTY_BUILD_QT),)
    19   # not so beautiful. In therory we should only remove theses files from sources
    20   sources := $(shell rm -f $(moc_files))
    21   sources := $(wildcard src/*.cc)
    22 endif
     13sources := $(wildcard src/*.cc)
    2314
    2415ifneq ($(G4INTY_BUILD_QT),)
    25   sources := $(wildcard src/*.cc)
    26   sources += $(moc_files)
     16  sources += $(moc_sources)
    2717endif
    28 
    2918
    3019objects := $(patsubst src/%.cc,$(G4TMPDIR)/%.o,$(sources))
     
    7665endif
    7766
    78 ###############################################################################
    79 #
    80 # Actual moc files for Qt files
    81 #
    82 # moc sources and headers: used for Qt signal/slot
    83 # - all headers which use signals/slots have the macro "Q_OBJECT" present
    84 #   in the class definitions; these all need to be processed by the
    85 #   "meta object compiler (moc)" which generates extra source code to
    86 #   implement the signal/slots, i.e., if "foo.h" contains the token "Q_OBJECT"
    87 #   it will be used by moc to generate the file "foo_moc.cpp" (the _moc. is
    88 #   just an arbitrary extension to make it easier to identify sources
    89 #   generated by moc).
    90 
    91 ifneq ($(G4INTY_BUILD_QT),)
    92 src/%_moc.cc: include/%.hh
    93         @echo Making moc file for $< ...
    94         @if [ `$(QTHOME)/bin/moc -v 2>&1 | grep "Qt 3" | wc -l ` -gt 0 ]; then \
    95         $(QTMOC) -o $@ $<;\
    96         else $(QTMOC) $(MOC_MACRO) -o $@ $<; \
    97         fi;
    98 endif
    99 
    10067
    10168###############################################################################
     
    11481# .PHONY targets are executed regardless of time-stamp of any file of
    11582# same name.
    116 .PHONY: all moc_inc obj lib clean clean_libs includes
     83.PHONY: all obj lib clean clean_libs includes
    11784
    11885obj: $(G4TMPDIR)/obj.last
  • trunk/geant4/config/liblist.c

    r593 r761  
    1 /* $Id: liblist.c,v 1.19 2007/07/18 14:21:15 gcosmo Exp $ */
     1/* $Id: liblist.c,v 1.20 2008/04/03 17:26:36 gunter Exp $ */
    22
    33/*
     
    200200    {
    201201      /* Get library name... */
    202       gets(buffer);
     202      fgets(buffer,BUFSIZE,stdin);
    203203      if(feof(stdin)) break;
     204      if (strlen(buffer) >= BUFSIZE-1)
     205      {
     206         fprintf(stderr,
     207           " Internal ERROR: BUFSIZE too small to read library name map file\n");
     208         exit(1);
     209      }
     210      if ( buffer[strlen(buffer)-1] == '\n')
     211        {   buffer[strlen(buffer)-1]='\0'; }  // when gets() was used, this discarded trailing \n
     212
    204213      ptr=strtok(buffer,":\n");
    205214
     
    252261        {
    253262          /* Get directory name... */
    254           gets(buffer);
     263          fgets(buffer,BUFSIZE,stdin);
     264          if (strlen(buffer) >= BUFSIZE-1)
     265          {
     266             fprintf(stderr,
     267               " Internal ERROR: BUFSIZE too small to read directory name\n");
     268             exit(1);
     269          }
     270          if ( buffer[strlen(buffer)-1] == '\n')
     271             {   buffer[strlen(buffer)-1]='\0'; }  // when gets() was used, this discarded trailing \n
     272
    255273          ptr=strtok(buffer,"/");
    256274          if(!ptr)
  • trunk/geant4/config/sys/Linux-icc.gmk

    r758 r761  
    11#
    2 # ------ GNU/LINUX ------         Intel icc 9.1
     2# ------ GNU/LINUX ------         Intel icc 10.1
    33#
    44ifeq ($(G4SYSTEM),Linux-icc)
    55  CXX       := icc
    6   CXXFLAGS  := -ansi -mp -no-gcc -w1
     6  CXXFLAGS  := -ansi -fp-model precise -no-gcc -w1
    77  ifdef G4OPTIMISE
    88    CXXFLAGS  += -O2
     
    2727  endif
    2828  G4RUNPATHOPTION := -Wl,-rpath -Wl,
    29   CC := gcc
    30   FC := gfortran
    31   FCFLAGS += -fno-automatic -fno-backslash -fno-second-underscore
     29  CC := icc
     30  FC := ifort
     31  FCFLAGS += -noautomatic -assume nobscc -assume no2underscores
    3232  FCLIBS := -lg2c -lnsl
    3333  AR := ar r
Note: See TracChangeset for help on using the changeset viewer.