Commit f8909043 authored by kocienda's avatar kocienda

Started making modifications that will move us towards a working Qt

layer. This includes adding many temporary _q<foo> files that are mostly
"borrowed" from Qt for the time being. So far, some basic leaf classes,
and some string stuff is ready and working.

These tests begin to support this effort.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9ad6b521
#======================================================================
#
# Makefile
#
# $RCSfile$
#
#======================================================================
# set top source dir relative to this directory
# include make vars boilerplate
#
TOPSRCDIR = ../../../..
include $(TOPSRCDIR)/Makefile.vars
#----------------------------------------------------------------------
# Set variables for this directory
CXXOBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJECTS = $(CXXOBJECTS)
PROGRAM = test
CLEAN_FILES = *.o \
$(PROGRAM) \
$(NULL)
#----------------------------------------------------------------------
# Set flags for this directory
CXXFLAGS = $(BASECXXFLAGS) \
-DQ_DELETING_VOID_UNDEFINED \
-DQT_NO_TEXTCODEC \
-DQT_NO_DATASTREAM \
-D_KWQ_COMPLETE_ \
-D_KWQ_IOSTREAM_ \
-I../../qt \
-I../.. \
-I. \
$(NULL)
LDFLAGS = $(BASELDFLAGS) \
-L../../qt \
-l_qt \
$(NULL)
DEPFLAGS = $(CXXFLAGS)
#----------------------------------------------------------------------
# Set targets for this directory
all: $(OBJECTS) $(PROGRAM)
$(PROGRAM): $(OBJECTS)
$(CXX) -o $@ $< $(LDFLAGS)
depend:
#----------------------------------------------------------------------
# include make rules boilerplate
include $(TOPSRCDIR)/Makefile.rules
#======================================================================
# end
#======================================================================
#include <iostream>
#if 0
#include "qsize.h"
#include "qrect.h"
#include "qcstring.h"
#endif
#include "qstring.h"
int main() {
#if 0
QSize s1 = QSize(3,3);
QSize s2 = QSize(s1);
cout << (s1 == s2) << endl;
s2.setHeight(5);
cout << (s1) << endl;
cout << (s2) << endl;
cout << "--------------------------------------------" << endl;
QRect r1 = QRect(5,5,10,10);
QRect r2 = QRect(20,20,10,10);
QRect r3 = r1.intersect(r2);
cout << (r1) << endl;
cout << (r2) << endl;
cout << (r3) << endl;
cout << (r1.intersects(r2)) << endl;
cout << (r1.intersects(r3)) << endl;
cout << "--------------------------------------------" << endl;
#endif
QString s = "foo";
cout << s << endl;
}
#======================================================================
#
# Makefile
#
# $RCSfile$
#
#======================================================================
# set top source dir relative to this directory
# include make vars boilerplate
#
TOPSRCDIR = ../../../..
include $(TOPSRCDIR)/Makefile.vars
#----------------------------------------------------------------------
# Set variables for this directory
CXXOBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJECTS = $(CXXOBJECTS)
PROGRAM = test
CLEAN_FILES = *.o \
$(PROGRAM) \
$(NULL)
#----------------------------------------------------------------------
# Set flags for this directory
CXXFLAGS = $(BASECXXFLAGS) \
-DQ_DELETING_VOID_UNDEFINED \
-DQT_NO_TEXTCODEC \
-DQT_NO_DATASTREAM \
-D_KWQ_COMPLETE_ \
-D_KWQ_IOSTREAM_ \
-I../../qt \
-I../.. \
-I. \
$(NULL)
LDFLAGS = $(BASELDFLAGS) \
-L../../qt \
-l_qt \
$(NULL)
DEPFLAGS = $(CXXFLAGS)
#----------------------------------------------------------------------
# Set targets for this directory
all: $(OBJECTS) $(PROGRAM)
$(PROGRAM): $(OBJECTS)
$(CXX) -o $@ $< $(LDFLAGS)
depend:
#----------------------------------------------------------------------
# include make rules boilerplate
include $(TOPSRCDIR)/Makefile.rules
#======================================================================
# end
#======================================================================
#include <iostream>
#if 0
#include "qsize.h"
#include "qrect.h"
#include "qcstring.h"
#endif
#include "qstring.h"
int main() {
#if 0
QSize s1 = QSize(3,3);
QSize s2 = QSize(s1);
cout << (s1 == s2) << endl;
s2.setHeight(5);
cout << (s1) << endl;
cout << (s2) << endl;
cout << "--------------------------------------------" << endl;
QRect r1 = QRect(5,5,10,10);
QRect r2 = QRect(20,20,10,10);
QRect r3 = r1.intersect(r2);
cout << (r1) << endl;
cout << (r2) << endl;
cout << (r3) << endl;
cout << (r1.intersects(r2)) << endl;
cout << (r1.intersects(r3)) << endl;
cout << "--------------------------------------------" << endl;
#endif
QString s = "foo";
cout << s << endl;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment