#NEWLINE# @ property #NEWLINE# def command_line( self ) : #NEWLINE# #INDENT# '\n            env = ConfigureEnvironment(self.deps_cpp_info, self.settings)\n            command = \'%s && nmake /f Makefile.msvc"\' % env.command_line\n            self.run(command)\n        ' #NEWLINE# command = '' #NEWLINE# if ( ( self . os == 'Linux' ) or ( self . os == 'Macos' ) ) : #NEWLINE# #INDENT# libs = ( 'LIBS="%s"' % ' ' . join ( [ ( '-l%s' % lib ) for lib in self . _deps_cpp_info . libs ] ) ) #NEWLINE# archflag = ( '-m32' if ( self . arch == 'x86' ) else '' ) #NEWLINE# ldflags = ( 'LDFLAGS="%s %s"' % ( ' ' . join ( [ ( '-L%s' % lib ) for lib in self . _deps_cpp_info . lib_paths ] ) , archflag ) ) #NEWLINE# debug = ( '-g' if ( self . build_type == 'Debug' ) else '-s -DNDEBUG' ) #NEWLINE# cflags = ( 'CFLAGS="%s %s %s"' % ( archflag , ' ' . join ( self . _deps_cpp_info . cflags ) , cl_args ) ) #NEWLINE# cpp_flags = ( 'CPPFLAGS="%s %s %s"' % ( archflag , ' ' . join ( self . _deps_cpp_info . cppflags ) , debug ) ) #NEWLINE# all_cpp_flags = copy . copy ( self . _deps_cpp_info . cppflags ) #NEWLINE# if self . libcxx : #NEWLINE# #INDENT# if ( str ( self . libcxx ) == 'libstdc++' ) : #NEWLINE# #INDENT# all_cpp_flags . append ( '-D_GLIBCXX_USE_CXX11_ABI=0' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( str ( self . libcxx ) == 'libstdc++11' ) : #NEWLINE# #INDENT# all_cpp_flags . append ( '-D_GLIBCXX_USE_CXX11_ABI=1' ) #NEWLINE# #UNINDENT# #UNINDENT# if ( 'clang' in str ( self . compiler ) ) : #NEWLINE# #INDENT# if ( str ( self . libcxx ) == 'libc++' ) : #NEWLINE# #INDENT# all_cpp_flags . append ( '-stdlib=libc++' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# all_cpp_flags . append ( '-stdlib=libstdc++' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# cpp_flags = ( 'CPPFLAGS="%s %s"' % ( archflag , ' ' . join ( all_cpp_flags ) ) ) #NEWLINE# include_paths = ':' . join ( [ ( '"%s"' % lib ) for lib in self . _deps_cpp_info . include_paths ] ) #NEWLINE# headers_flags = ( 'C_INCLUDE_PATH=%s CPP_INCLUDE_PATH=%s' % ( include_paths , include_paths ) ) #NEWLINE# command = ( 'env %s %s %s %s %s' % ( libs , ldflags , cflags , cpp_flags , headers_flags ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . os == 'Windows' ) and ( self . compiler == 'Visual Studio' ) ) : #NEWLINE# #INDENT# cl_args = ' ' . join ( [ ( '/I"%s"' % lib ) for lib in self . _deps_cpp_info . include_paths ] ) #NEWLINE# lib_paths = ';' . join ( [ ( '"%s"' % lib ) for lib in self . _deps_cpp_info . lib_paths ] ) #NEWLINE# command = ( 'SET LIB=%s;%%LIB%% && SET CL=%s' % ( lib_paths , cl_args ) ) #NEWLINE# #UNINDENT# #UNINDENT# return command